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

How to extract vehicle shared ways from cycling route?

0

In order to evaluate if a cycling route is suitable for children, I need to identify how many segments are shared with vehicles. I tried with this query [1] but it hangs on "rendering geoJSON". Where am I wrong?

[1] http://overpass-turbo.eu/s/yYk

asked 21 May '18, 12:50

Cascafico's gravatar image

Cascafico
283202329
accept rate: 0%


One Answer:

0

Is the name of the relationship right?

Using the wizard to just get relations with that name I'm getting zero items returned

/*
This has been generated by the overpass-turbo wizard.
The original search was:
“"name"="Donauradweg (NÖ)" in Austria”
*/
[out:json][timeout:25];
// fetch area “Austria” to search in
{{geocodeArea:Austria}}->.searchArea;
// gather results
(
  relation["name"="Donauradweg (NÖ)"](area.searchArea);
);
// print results
out body;
>;
out skel qt;

Work out how to get the route first, then work out how to filter those items to just the ways with those tags.

answered 07 Jul '20, 11:34

DevonshireBoy42's gravatar image

DevonshireBoy42
10113
accept rate: 0%

I can get part of it to work with this string (replaced the "=" sign with a tilde "~"

type:relation and name~"Donauradweg" in Austria

Overpass returns nodes: 15487, ways: 1525, relations: 6

but if the query uses the name as you suggested:

type:relation and name~"Donauradweg (NÖ)" in Austria

nothing is returned.

Someone more skilled with Overpass queries will be able to help with the combined query to return sections shared with highways

(07 Jul '20, 14:53) AlaskaDave

Source code available on GitHub .