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

In the Search box, is it possible to search for any key name and value, not just the value of the “Name” key? Should it be?

1

Sort of like TagInfo, but limited to - and mapped to - the currently viewable box?

I am aware of the XAPI + JOSM solution, but I want it easy. (I don't currently use JOSM, and I am not crazy about composing the query string by hand, including the box coordinates.)

asked 10 Feb '11, 19:38

ponzu's gravatar image

ponzu
2.1k496483
accept rate: 0%

edited 10 Feb '11, 19:38


One Answer:

1

Simple answer: No, this is not possible. That is not really the purpose of the search box on the main page.

Though the search box does use some other tags as well as the name, eg to see what kind of object it is. And you can search for something like "pub in Glasgow", and it will find anything within Glasgow that is tagged as amenity=pub. For more details, see the wiki page for Nominatim, which is the search tool.

If you do what to search for a particular key or value, then the best option is probably to use JOSM. You can just use JOSM to pick an area from the map, then download the osm data. Then use the "Find" tool to select the objects you want.

You don't necessarily have to use the XAPI for this, unless you want to search tags over a larger area (ie more than you can download in JOSM at once).

answered 10 Feb '11, 21:42

Vclaw's gravatar image

Vclaw
9.2k895141
accept rate: 22%

Source code available on GitHub .