[Geocoding] Numbers instead of cities in web API?

Tom Hughes tom at compton.nu
Fri Nov 5 23:36:52 GMT 2010


On 05/11/10 22:52, Nicolás Lichtmaier wrote:

> <place place_id="58305700" osm_type="way" osm_id="58696544"
> boundingbox="-33.8965721130371,-33.8945274353027,151.14875793457,151.150177001953"
> lat="-33.8955498694241" lon="151.14946674404" display_name="Hunter
> Street, Lewisham, 2049, Marrickville Municipality, New South Wales,
> Australia" class="highway" type="residential">
> <road>Hunter Street</road>
> <suburb>Lewisham</suburb>
> *<city>2049</city>*
> <county>Marrickville Municipality</county>
> <state>New South Wales</state>
> <country>Australia</country>
> <country_code>au</country_code>
> </place>
>
> 2049? Should be Sydney there...

If you looked at the HTML version and clicked through to the detail page:

   http://open.mapquestapi.com/nominatim/v1/details.php?place_id=13806769

then you would see that the name comes from this OSM object:

   http://www.openstreetmap.org/browse/relation/331527

I guess the problem is inconsistent use of admin_level - there is a 
massive but not very helpful table in the wiki and at first site the 
Australian use of level 8 is somewhat at odds with much of the rest of 
the world.

Tom

-- 
Tom Hughes (tom at compton.nu)
http://compton.nu/



More information about the Geocoding mailing list