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

Searching inside a country

0

The geocoder in our software suddenly stopped working and we have analyzed this to the following cause: To search for the Mainstreet 12, Amsterdam, Netherlands, (doesn't exist) we used the following call:

http://nominatim.openstreetmap.org/search?q=12,Mainstreet,Amsterdam,NL&format=xml

This format used to work but no longer returns results. I noticed that it does work with the full country name appended to the address

http://nominatim.openstreetmap.org/search?q=12,Mainstreet,Amsterdam,Nederland&format=xml

but we don't have the country name available in our software. So, now I plan to change our code to

http://nominatim.openstreetmap.org/search?q=12,Mainstreet,Amsterdam&countryCodes=NL&format=xml

Since that is in line with the wiki description.

My main questions are. Did the API indeed change? How could I have known this upfront, so where should I register to be warned for such changes before they become effective?

asked 23 Feb '12, 13:37

msol's gravatar image

msol
1334
accept rate: 0%

edited 24 Feb '12, 08:27

Kozuch's gravatar image

Kozuch
1.7k587285


One Answer:

1

Please open a ticket in the nominatim trac:

http://trac.openstreetmap.org/newticket?component=nominatim

Thank you

answered 23 Feb '12, 14:32

SimonPoole's gravatar image

SimonPoole ♦
44.7k13326701
accept rate: 18%

Source code available on GitHub .