[OSM-talk] Searching OSM

Roland Olbricht roland.olbricht at gmx.de
Mon Oct 1 18:19:43 BST 2012


Hi Phil,

>  Is there a way to search for a node type where it is on a way of a type, or
> types? An example would be gates on trunk or primary roads.

Yes, there is a way. Please paste

way(50.6,7.0,50.8,7.3)[highway="tertiary"];(node(w)[barrier];);out skel;

into the Convert Form at
http://www.overpass-api.de/query_form.html
and select "to OpenLayers overlay" and have some seconds patience.

If you want to edit the data instead, you can download it with

way(50.6,7.0,50.8,7.3)[highway="tertiary"];(node(w)[barrier];);out meta;

in the upper form and then open it in JOSM.

The (50.6,7.0,50.8,7.3) is the bounding box (lat, lon, lat, lon) and can of 
course be changed, as well as "tertiary" to the tag value you actually want.

Cheers,

Roland
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20121001/1a130ef2/attachment.html>


More information about the talk mailing list