Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gadmGid filter doesn't work as expected #19

Closed
MortenHofft opened this issue Feb 9, 2023 · 1 comment
Closed

gadmGid filter doesn't work as expected #19

MortenHofft opened this issue Feb 9, 2023 · 1 comment
Assignees
Labels

Comments

@MortenHofft
Copy link
Member

MortenHofft commented Feb 9, 2023

Via by gbif/hp-land#5 (comment)

It is possible to use the gadm API to restrict suggestions
https://api.gbif.org/v1/geocode/gadm/search?limit=100&q=berlin includes berlin El Salvador

restricting that with a gadmGid=DEU
https://api.gbif.org/v1/geocode/gadm/search?limit=100&q=berlin&gadmGid=DEU and we only get Berlin in Germany

But with q=Leipzig it doesn't work even though we have an entry for it
https://api.gbif.org/v1/geocode/gadm/search?limit=100&q=Leipzig has results in Germany
https://api.gbif.org/v1/geocode/gadm/search?gadmGid=DEU&limit=100&q=Leipzig no results

"id": "DEU.14.7_1",
"name": "Leipzig",
@T-Engel
Copy link

T-Engel commented Mar 13, 2023

Thanks for raising this issue here. I'm just leaving a comment, so I get notified if there are any fixes for this bug. Fixing this would help us a lot :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants