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

limit nominatim search to a specific city or even a zip code

2

Hello,

the search for address birkenstrasse in berlin even matches items outside berlin: http://nominatim.openstreetmap.org/search?q=Birkenstrasse%2CBerlin&format=json&addressdetails=1

How can I limit the search to a specific city or even a zip code: http://nominatim.openstreetmap.org/search?q=Birkenstrasse%2CBerlin%2C10551&format=json&addressdetails=1

Thanx steffen

asked 18 Nov '11, 12:55

steffen's gravatar image

steffen
41113
accept rate: 0%


2 Answers:

2

You have to specify a bounding box (viewbox=) and bound the search to that area (bounded=1) as in http://nominatim.openstreetmap.org/search?q=Birkenstraße,%2CBerlin&format=json&addressdetails=1&viewbox=13.58%2C52.66%2C13.6%2C52.64&bounded=1.

answered 19 Nov '11, 15:30

scai's gravatar image

scai ♦
33.3k21309459
accept rate: 23%

-3

If you own an android device (or you can use the iso from http://www.android-x86.org in Virtualbox.org or VMware) then you can benefit from the app called OsmAnd that has the second best offline search function for OSM based data.

It is only topped by MapFactor Navigator free version 11 where you can also use offline maps on any PC with Windows, Linux via Wine, or WindowsMobile.

See wiki.osm.org for more details.

Unfortunately I cannot give you a solution about Nominatim, but have a look at Nominatim and all its sub pages for more information.

answered 18 Nov '11, 14:29

stephan75's gravatar image

stephan75
12.6k556210
accept rate: 6%

Source code available on GitHub .