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

Get all ways of a specific tag with Overpass Turbo (geocode)

0

How do I get all ways in a US state (e.g. Oklahoma) which have the "tiger:cfcc" tag?

I've tried to query for it here: https://overpass-turbo.eu/s/wLz:

[out:json][timeout:300];

{{geocodeArea:Oklahoma}}->.searchArea;
way["tiger:cfcc"]
  (area.searchArea);

out body;

>;
out skel qt;

May you please help me bringing it to work?

asked 06 Mar '18, 20:09

landuse's gravatar image

landuse
1165511
accept rate: 0%


One Answer:

1

I guess you won't be able to get it to work. Even a small area has many ways and will be a large query:

https://overpass-turbo.eu/s/wLH

(I've used out center there, so it isn't returning all the nodes, but it gets the point across)

Your best bet is to grab an extract from https://download.geofabrik.de/north-america/us/oklahoma.html and process that locally using osmium or osmosis.

answered 06 Mar '18, 22:52

maxerickson's gravatar image

maxerickson
12.7k1083176
accept rate: 32%

1

As ever I'd recommend the osmconvert/osmfilter combination for simple filtering problems like this. These can be downloaded and run as is, which is not true of osmium, and not always true for osmosis.

(07 Mar '18, 12:41) SK53 ♦

Source code available on GitHub .