Opened 13 months ago

Closed 3 months ago

#5438 closed defect (fixed)

Spain - Postal code search

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

Description

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, Barcelonés, Barcelona, Cataluña, 08917, España

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.

Change History (2)

comment:1 Changed 13 months ago by franjavitino@…

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 Progrès, Torre Gavá, Gavà, Bajo Llobregat, Barcelona, Cataluña, 08840, España (41.2995446, 2.0122305)
-Carrer del Progrès, Torre Gavá, Gavà, Bajo Llobregat, Barcelona, Cataluña, 08850, España (41.2975538, 2.0088409)

If i request the url without the postalcode, returns 3 matches:
-Carrer de Progrés, Torre Gavá, Gavà, Bajo Llobregat, Barcelona, Cataluña, 08840, España (41.3016208, 2.0139323)
-Carrer del Progrès, Torre Gavá, Gavà, Bajo Llobregat, Barcelona, Cataluña, 08840, España (41.2995446, 2.0122305)
-Carrer del Progrès, Torre Gavá, Gavà, Bajo Llobregat, Barcelona, Cataluña, 08850, España (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).

comment:2 Changed 3 months ago by lonvia

  • Resolution set to fixed
  • Status changed from new to closed

Should be fixed now.

Note: See TracTickets for help on using tickets.