klokantech / osmnames-sphinxsearch

Geocoder search engine for OSMNames.org data powered by sphinx search
https://osmnames.org/
MIT License
76 stars 24 forks source link

Not compatible with Nominatim JSON #68

Open RadekHavelka opened 3 years ago

RadekHavelka commented 3 years ago

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 commented 3 years ago

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.