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

Postalcode nominatim does not work #4822

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment
Closed

Postalcode nominatim does not work #4822

openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment

Comments

@openstreetmap-trac
Copy link

Reporter: windhoekboy
[Submitted to the original trac issue database at 7.16am, Saturday, 30th March 2013]

Hi!

The nominatim api does not return any results when I search for a postal code.

Takes this for example:
http://nominatim.openstreetmap.org/search?format=json&polygon=0&countrycodes=DE&postalcode=66740

It should return the city "Saarlouis" but instead it returns nothing. A reverse search clarifies that this postalcode is known:

http://nominatim.openstreetmap.org/search?format=json&polygon=0&countrycodes=DE&city=Saarlouis

I stumbled about the following strange behaviour:
When I enter a city in postalcode it returns the correct address. Take this:
http://nominatim.openstreetmap.org/search?format=json&polygon=0&countrycodes=DE&postalcode=Saarlouis

Is there something mixed up with Postalcode and city?

@openstreetmap-trac
Copy link
Author

Author: lonvia
[Added to the original trac issue at 9.25pm, Wednesday, 3rd April 2013]

Nominatim was searching for the postal code in the wrong part of the address. Fixed.

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