Fetching data from an external JSON, taking items and looping on them and displaying on an Map
Fetching data directly from https://sociaal.brussels/rest/search/organisation?categories=263
Note: category 263 = Milieux d'accueil pour jeunes enfants où la participation financière est proportionnelle aux revenus
Note: a source URL like https://sociaal.brussels/rest/sector/46/organisations works when filtering on some Zipcodes but not for the global map. Probably an issue with the source data
We can also filter on the external json:
- /osm (all, taking of course into account the filter which might be set in the frontmatter)
- /osm?id=12926 (id = a certain value)
- /osm?filter=id gte 19061 (id >= a certain value)
- /osm?filter[id][]=gte:19061 (id >= a certain value)
- /osm?filter[address][districtCode]=21 (address is an array containing a districtCode)
- /osm?filter[lastUpdate][]=11/12/20 (lastUpdate = a certain value)
- /osm?filter[lastUpdate][]=gte:30 (lastUpdate >= a certain value)
- /osm?filter[lastUpdate][]=gte:30%2F10 (lastUpdate >= a certain value) Note: given the structure of the date field, does not work as expected (date should have been expressed in the source as in linux-format)
address is an array containing a zipCode
- /osm?filter[address][zipCode]=1200 Woluwe-Saint-Lambert
- /osm?filter[address][zipCode]=1060 Saint-Gilles
- /osm?filter[address][zipCode]=1030 Schaerbeek
- /osm?filter[address][zipCode]=1180 Uccle
legalStatus is an array containing a labelFr
- /osm?filter[legalStatus][labelFr]=Service public - Commune Service public - Commune
- /osm?filter[legalStatus][labelFr]=Association sans but lucratif (ASBL) Association sans but lucratif (ASBL)