[Geocoding] [OpenStreetMap] #5261: Lookup with postalcode fails
OpenStreetMap
trac at noreply.openstreetmap.org
Tue Dec 23 12:39:09 UTC 2014
#5261: Lookup with postalcode fails
-----------------------------+-------------------------
Reporter: pmiller.live@… | Owner: geocoding@…
Type: defect | Status: new
Priority: minor | Milestone:
Component: nominatim | Version:
Resolution: | Keywords:
-----------------------------+-------------------------
Comment (by lonvia):
It's actually not quite clear what the query means. Are you looking for a
city called Zurich with postcode 8005 or for postcode 8005 within Zurich.
It may sound similar but it changes how Nominatim looks for the result.
Currently it does the first and that doesn't work because there is no such
object (with Zurich having more than one postcode and all).
If you are looking for the second then you should leave out the city
parameter. Postal codes are assumed to be unique per country. So, this
will work:
http://nominatim.openstreetmap.org/search?postalcode=8005&country=ch&format=json
In any case, postalcode + city should yield some sensible result. Probably
by just looking for the postcode with the city.
--
Ticket URL: <https://trac.openstreetmap.org/ticket/5261#comment:1>
OpenStreetMap <http://www.openstreetmap.org/>
OpenStreetMap is a free editable map of the whole world
More information about the Geocoding
mailing list