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

Not compatible with Nominatim JSON #68

Open
RadekHavelka opened this issue Jan 26, 2021 · 1 comment
Open

Not compatible with Nominatim JSON #68

RadekHavelka opened this issue Jan 26, 2021 · 1 comment

Comments

@RadekHavelka
Copy link

Hi,
thank you for the docker build. I tried to use it with ol-ext library as drop in replacement for Nominatim, and found out it is not 100% compatible. The JSON provided by your search and Nominatim API is not the same, and it causes troubles (at least the data structure is different). Is this a "feature", or the API did change during time and the python script in this docker doesn't reflect it (yet?). I also noticed there are not the the POLYGON boundaries of the city, that ol-ext uses to highlight the searched city. Am I looking wrong?
Thanks

@mtmail
Copy link

mtmail commented Jan 26, 2021

Only the response fields lat', lon, display_name, type, class are in the same position. (Nominatim's format=jsonv2 returns category instad of class). boundingbox` orders the coordinates in the list different. That has been from osmnames's first release. I don't think 100% compatibility was a goal of the project.

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

No branches or pull requests

2 participants