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

Geocode api(search.php) doesn’t return specific data

0

Hi, Check below reverse geocoding url: https://nominatim.openstreetmap.org/reverse?format=json&lat=43.642388&lon=-79.374265

Got data as: Toronto Star, 1, Yonge Street, South Core, Old Toronto, Toronto, Ontario, M5E 1E5, Canada

But can't get the same data in geocode url(got some other data, not the expected one): https://nominatim.openstreetmap.org/search?format=json&limit=5&addressdetails=1&q=1,%20Yonge%20Street

How to get above data in geocode(using query string)?

asked 31 Aug '18, 11:44

Rajavelu_M's gravatar image

Rajavelu_M
253454858
accept rate: 33%

reverted 06 Sep '18, 06:28


One Answer:

0

answered 06 Sep '18, 10:37

mtmail's gravatar image

mtmail
4.8k1574
accept rate: 27%

@mtmail: Your reply in above link: "Without the city name the bus stop's ref=1 https://www.openstreetmap.org/node/2215262534 gets treated as a name and direct name matches rank higher (house number matches happen later in the search logic)".

Return this data(as matches rank higher) is fine. But when we give limit as greater than 1, expected lower rank results also. But got only 1 result.

(17 Oct '18, 11:29) Rajavelu_M

Source code available on GitHub .