Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#5177 closed defect (invalid)

Nominatim API Bug: postal code

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

Description

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

Change History (2)

comment:1 Changed 5 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 5 years ago by pmiller.live@…

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.