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

Find total length of ways within a region, in Overpass Turbo

1

For example, I can run the Wizard query in Overpass Turbo: "highway=motorway AND oneway=yes in Chugoku" which gives me all the dual-carriage ways in the Chugoku region of Japan. Is there a way that I can calculate the total length of all these paths?

I tried exporting to a KML and running some script but then I realized that the KML file was a folder that contained thousands of individual paths.

I imagine there has to be a better way of doing this.

asked 03 May '15, 22:23

trubetskoy's gravatar image

trubetskoy
26112
accept rate: 0%

try to type "length" in the search box of this FAQ site ... there are already some topics how to determine lengts of determined OSM way elements.

(04 May '15, 16:43) stephan75

2 Answers:

2

Export to a format QGIS can handle. Then use a function of that program to calculate. Here's a tutorial

answered 06 May '15, 20:27

joost%20schouppe's gravatar image

joost schouppe
3.4k245087
accept rate: 12%

edited 28 Feb '20, 02:24

aharvey's gravatar image

aharvey
5232913

2

answered 18 Nov '19, 11:28

jidanni's gravatar image

jidanni
339323647
accept rate: 0%

Source code available on GitHub .