This is a static archive of our old OSM Help Site. Please post any new questions and answers at community.openstreetmap.org.

OSM returns wrong address in reverse geocoding API

0

Hi, I see there is a problem with OSM regarding reverse geocoding. For example for address in city Katowice: Katowice, Śródmieście, 18 sierpnia

It returns that it is city "Gorzów Wielkopolski" =

https://nominatim.openstreetmap.org/?format=jsonv2&accept-language=pl&countrycodes=pl&addressdetails=1&polygon_geojson=1&limit=1&q=Katowice,%20%C5%9Ar%C3%B3dmie%C5%9Bcie,%2018%20sierpnia

But, if word in address will be changed to "Katowice, 18 sierpnia" it returns corect address for city Katowice:

https://nominatim.openstreetmap.org/?format=jsonv2&accept-language=pl&countrycodes=pl&addressdetails=1&polygon_geojson=1&limit=1&q=Katowice,%2018%20sierpnia

How to avoid such problems? Cause it totally different cities and provide more problems than help. I don't understand why OSM does not include word "Katowice" as main city or at least try to check Katowice, because it is better result than Gorzów (street match as well as city).

asked 06 Sep '20, 11:14

michal%20galaszewski's gravatar image

michal galas...
11112
accept rate: 0%


One Answer:

0

The street and the address in question is not within the boundary of Śródmieście (in Katowice) see https://nominatim.openstreetmap.org/ui/search.html?q=%C5%9Ar%C3%B3dmie%C5%9Bcie%2C+

answered 08 Sep '20, 13:39

SimonPoole's gravatar image

SimonPoole ♦
44.7k13326701
accept rate: 18%

edited 08 Sep '20, 13:40

I get it, but still adress more similar for Katowice disregarding that the street does not belong to Srodmiescie boundary that searching for totally different city. Still think it is a problem with reverse geocoding or I am doing something wrong. Cause I have no influece on what the address I expect - i get it from real estate advertisement and just making sure, that geo_point is similar to text address provided.

(08 Sep '20, 17:10) michal galas...

Have you tested against Photon? It uses data form nominatim, but is more forgiving wrt errors. http://photon.komoot.de/

(08 Sep '20, 18:21) SimonPoole ♦