Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Nominatim API Bug: postal code #5177

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 2 comments
Closed

Nominatim API Bug: postal code #5177

openstreetmap-trac opened this issue Jul 23, 2021 · 2 comments

Comments

@openstreetmap-trac
Copy link

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

@openstreetmap-trac
Copy link
Author

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.

@openstreetmap-trac
Copy link
Author

Author: pmiller.live[at]gmail.com
[Added to the original trac issue at 10.32am, Sunday, 25th May 2014]

Thanks Ionvia for your quick response. I will keep the ZIP code for now but keep an eye on it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant