openig / geotrek_admin_aggregator

Apache License 2.0
2 stars 1 forks source link

2 - filter POI by portal #2

Open IdrissaD opened 2 years ago

IdrissaD commented 2 years ago

Treks can be filtered by portals, but not POI (cf. https://github.com/GeotrekCE/Geotrek-admin/issues/3043). One way to get roughly the same effect would be to spatially filter POI, assuming portals in the source DB have a spatial meaning (organizations that don't cover the same area).

Add possibility to enter a BBOX to filter POI directly in the API:

Add spatial filtering between API fetching and data processing:

Another option would be to only download POI that are linked to a trek we fetch, through API poi/?trek=XXX route: