developmentseed / bioacoustics-frontend

Frontend code for the Google Bioacoustics project that's used by A2O Search
https://search.acousticobservatory.org/
MIT License
1 stars 0 forks source link

Filter sites with no coordinates #115

Closed geohacker closed 1 year ago

geohacker commented 1 year ago

Anthony suggest that we should use the API filters to remove sites without coordinates:

@oliverroick I tried this with the filter_encoded query param but can't seem to get custom_latitude filter to work. Returns a 400 with "Filter parameters were not valid: Unrecognized combiner or field name: custom_latitude." Here's a curl:

curl https://api.bioacoustics.ds.io/api/v1/a2o/sites/\?direction\=asc\&items\=341\&order_by\=name\&filter_encoded\=eyJmaWx0ZXIiOnsiY3VzdG9tX2xhdGl0dWRlIjp7Im5vdF9lcSI6bnVsbH19fQo\=