Opened 7 years ago

Closed 7 years ago

#4305 closed defect (invalid)

city/village does not show up in results when hamlet is present

Reported by: don@… Owned by: geocoding@…
Priority: minor Milestone:
Component: nominatim Version:
Keywords: Cc:

Description

I'm doing a reverse geocode and would like to see the village/city of a particular point.

For example: http://nominatim.openstreetmap.org/reverse?format=xml&lat=42.05033650&lon=-87.98355006&zoom=18&addressdetails=1

Returns: <reversegeocode timestamp="Fri, 16 Mar 12 21:39:30 +0000" attribution="Data Copyright OpenStreetMap Contributors, Some Rights Reserved. CC-BY-SA 2.0." querystring="format=xml&lat=42.05033650&lon=-87.98355006&zoom=18&addressdetails=1"> <result place_id="87567334" osm_type="way" osm_id="94668565" lat="42.0498306219343" lon="-87.9825624288919"> Arlington Heights Fire Station, South Arlington Heights Road, Schnells Corner, Cook, Illinois, 60005, United States of America </result> <addressparts> <fire_station>Arlington Heights Fire Station</fire_station> <road>South Arlington Heights Road</road> <hamlet>Schnells Corner</hamlet> <county>Cook</county> <state>Illinois</state> <postcode>60005</postcode> <country>United States of America</country> <country_code>us</country_code> </addressparts> </reversegeocode>

This point is in Arlington Heights, but the Village does not appear in the results. This "Schells Corner" is too large, but that's another problem.

If I nudge that point a little North, the Hamlet disappears and the correct Village appears:

http://nominatim.openstreetmap.org/reverse?format=xml&lat=42.05633650&lon=-87.98355006&zoom=18&addressdetails=1

<reversegeocode timestamp="Fri, 16 Mar 12 21:43:14 +0000" attribution="Data Copyright OpenStreetMap Contributors, Some Rights Reserved. CC-BY-SA 2.0." querystring="format=xml&lat=42.05633650&lon=-87.98355006&zoom=18&addressdetails=1"> <result place_id="35195585" osm_type="way" osm_id="24081377" lat="42.0560132542415" lon="-87.984154998636"> West Pickwick Road, Arlington Heights, Cook, Illinois, 60005, United States of America </result> <addressparts> <road>West Pickwick Road</road> <village>Arlington Heights</village> <county>Cook</county> <state>Illinois</state> <postcode>60005</postcode> <country>United States of America</country> <country_code>us</country_code> </addressparts> </reversegeocode>

Is there a reason city/village does not appear in the results when hamlet does? Can I always see the city/village in the result?

Thanks.

-Don

Change History (1)

comment:1 Changed 7 years ago by Sarah Hoffmann

Resolution: invalid
Status: newclosed

Villages and hamlets are on the same level in Nominatim, only one of the two can appear in the address.

Above results are approximate because the village appears in the OSM data as a place node only. Nominatim has to make a guess according to the closest place node it finds. If you want more precise results, enter the exact extents of the village as a boundary polygon in OSM.

Note: See TracTickets for help on using tickets.