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

Spain - Postal code search #5436

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

Spain - Postal code search #5436

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

Comments

@openstreetmap-trac
Copy link

Reporter: franjavitino[at]gmail.com
[Submitted to the original trac issue database at 9.12am, Thursday, 1st December 2016]

Hey there,

I am using nominatim url service to obtain coordinates from a location.

When I use this url:
http://nominatim.openstreetmap.org/search?format=json&limit=5&street=Avda.%20Comunidad%20Europea%2C%20s%2Fn&city=Badalona&country=Espa%C3%B1a

It returns this display_name:
avenida de la Comunidad Europea, Pep Ventura, Puigfred, Badalona, Barcelons, Barcelona, Catalua, 08917, Espaa

When i add the &postalcode=08917 it returns nothing.
I checked openstreetmap and it contains the postal code 08917 so i am assuming there is some kind of bug on the search.

Thank you for your service.

@openstreetmap-trac
Copy link
Author

Author: franjavitino[at]gmail.com
[Added to the original trac issue at 4.54pm, Thursday, 1st December 2016]

Another test case:

If i request this with the postalcode:
http://nominatim.openstreetmap.org/search?format=json&limit=5&street=C%2F%20Progres%2C%2069&city=Gav%C3%A0&postalcode=08850&country=Espa%C3%B1a

It returns two locations, apparently ignoring the postalCode:
-Carrer del Progrs, Torre Gav, Gav, Bajo Llobregat, Barcelona, Catalua, 08840, Espaa (41.2995446, 2.0122305)
-Carrer del Progrs, Torre Gav, Gav, Bajo Llobregat, Barcelona, Catalua, 08850, Espaa (41.2975538, 2.0088409)

If i request the url without the postalcode, returns 3 matches:
-Carrer de Progrs, Torre Gav, Gav, Bajo Llobregat, Barcelona, Catalua, 08840, Espaa (41.3016208, 2.0139323)
-Carrer del Progrs, Torre Gav, Gav, Bajo Llobregat, Barcelona, Catalua, 08840, Espaa (41.2995446, 2.0122305)
-Carrer del Progrs, Torre Gav, Gav, Bajo Llobregat, Barcelona, Catalua, 08850, Espaa (41.2975538, 2.0088409)

There are two 08840 and one 08850, so I assume there is some bug on the search (or it displays it for some reason).

@openstreetmap-trac
Copy link
Author

Author: lonvia
[Added to the original trac issue at 4.46pm, Saturday, 30th September 2017]

Should be fixed now.

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