You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.
Author: lonvia [Added to the original trac issue at 6.42am, Sunday, 25th May 2014]
The parameters are case-sensitive 'postalcode' works, 'postalCode' is silently ignored by Nominatim.
The reason the first query does not work is that post code 4000 does not yet seem to be mapped for Basel (or wasn't 2 years ago, the postcode data is only partially updated), so Nominatim cannot find a match for the query. Second query just looks for Basel and that works fine.
Reporter: pmiller.live[at]gmail.com
[Submitted to the original trac issue database at 5.47am, Friday, 23rd May 2014]
Hi OSM folks,
I've come across a small bug within the geocoding api nominatim
The API documentation [1] says, searching for postal code should be done with the 'postalcode' parameter.
The documented parameter does not give any results for some cities, e.g.:
http://nominatim.openstreetmap.org/search?postalcode=4000&city=Basel&countrycodes=CH&format=json
Changing the 'postalcode' parameter to 'postalCode' for no obvious reasons gives results:
http://nominatim.openstreetmap.org/search?postalCode=4000&city=Basel&countrycodes=CH&format=json
Please verify that the correct API documentation is present and/or explain the situation, that would be a great help :)
Thanks!
Paul
[1] http://wiki.openstreetmap.org/wiki/Nominatim
The text was updated successfully, but these errors were encountered: