This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

postalcode should be in uppercase for geocode?

0

In my own setup of nominatim 3.1.0, got empty response for 'http://localhost:8080/search.php?format=json&country=united kingdom&postalcode=st15 0dw'

But got correct data, if i give postalcode in uppercase 'ST15 0DW'

In https://nominatim.openstreetmap.org/search?format=json&country=united%20kingdom&postalcode=st15%200dw both upper & lowercase return result. Am I missed anything in my setup?

Note: Followed nominatim latest document for setup & specialphrases.sql not yet imported, that may be the reason ?

asked 28 Aug '18, 14:42

Rajavelu_M's gravatar image

Rajavelu_M
253454858
accept rate: 33%

edited 28 Aug '18, 14:51


One Answer:

0

It's possible it got fixed in version 3.2. already, I can't find a specific change though. nominatim.openstreetmap.org runs version 3.2 https://github.com/openstreetmap/Nominatim/blob/master/ChangeLog . https://github.com/openstreetmap/Nominatim/releases/tag/v3.2.0

answered 28 Aug '18, 15:15

mtmail's gravatar image

mtmail
4.8k1574
accept rate: 27%

Source code available on GitHub .