Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#5177 closed defect (invalid)

Nominatim API Bug: postal code

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


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.:

Changing the 'postalcode' parameter to 'postalCode' for no obvious reasons gives results:

Please verify that the correct API documentation is present and/or explain the situation, that would be a great help :)




Change History (2)

comment:1 Changed 6 years ago by Sarah Hoffmann

Resolution: invalid
Status: newclosed

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.

comment:2 Changed 6 years ago by…

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

Note: See TracTickets for help on using tickets.