User Tools

Site Tools


using_overlay_to_extract_data_from_openstreetmap

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
using_overlay_to_extract_data_from_openstreetmap [2022/06/15 18:35]
abeverley
using_overlay_to_extract_data_from_openstreetmap [2022/06/21 19:14] (current)
abeverley [Total length of segregated cycleways in Westminster]
Line 2: Line 2:
  
 I used the following [[https://​overpass-turbo.eu/​|Overpass]] files to measure the amount of cycle lanes in cities: I used the following [[https://​overpass-turbo.eu/​|Overpass]] files to measure the amount of cycle lanes in cities:
 +
 +==== Total length of highways in Westminster ====
 +
 +  [out:​csv(number,​length)];​
 +  {{geocodeArea:​Westminster}}->​.searchArea;​
 +  way["​highway"​]["​highway"​!="​cycleway"​]["​highway"​!="​bridleway"​]["​highway"​!="​footway"​]["​highway"​!="​path"​]["​highway"​!="​service"​]["​access"​!="​private"​](area.searchArea);​
 +  make stat number=count(ways),​length=sum(length());​
 +  out;
 +
 +==== Total length of segregated cycleways in Westminster ====
 +
 +  [out:​csv(number,​length)];​
 +  {{geocodeArea:​Westminster}}->​.searchArea;​
 +  way["​highway"​="​cycleway"​]["​foot"​!="​designated"​](area.searchArea);​
 +  make stat number=count(ways),​length=sum(length());​
 +  out;
 +
 +==== Total length of segregated cycleways in Camden ====
 +
 +  [out:​csv(number,​length)];​
 +  {{geocodeArea:​London borough of Camden}}->​.searchArea;​
 +  way["​highway"​="​cycleway"​](area.searchArea);​
 +  make stat number=count(ways),​length=sum(length());​
 +  out;
 +
 +==== Show all segregated cycleways in Westminster on a map ====
 +
 +Click the zoom icon once generated
 +
 +  [out:json];
 +  {{geocodeArea:​Westminster}}->​.searchArea;​
 +  (
 +    way["​highway"​="​cycleway"​]["​foot"​!="​designated"​](area.searchArea);​
 +  );
 +  out body;
 +  >;
 +  out skel qt;
 +
 +==== Show only roads in Westminster on a map ====
 +
 +  [out:json];
 +  {{geocodeArea:​Westminster}}->​.searchArea;​
 +  (
 +    way["​highway"​]["​highway"​!="​cycleway"​]["​highway"​!="​bridleway"​]["​highway"​!="​footway"​]["​highway"​!="​path"​]["​highway"​!="​service"​]["​access"​!="​private"​](area.searchArea);​
 +  );
 +  out body;
 +  >;
 +  out skel qt;
 +==== Show segregated cycle routes on current viewed map ====
 +
 +  [bbox:​{{bbox}}];​
 +  ( 
 +    way["​highway"​="​cycleway"​];​
 +  );
 +  out geom;
 +
 +==== Other things I didn't write details for ====
  
   [out:​csv(length,​value)];​   [out:​csv(length,​value)];​
Line 21: Line 78:
     out;     out;
   }   }
- 
-  [bbox:​{{bbox}}];​ 
-  (  
-    way["​highway"​="​cycleway"​];​ 
-  ); 
-  out geom; 
  
   [out:​csv(length,​value)];​   [out:​csv(length,​value)];​
using_overlay_to_extract_data_from_openstreetmap.1655314517.txt.gz ยท Last modified: 2022/06/15 18:35 by abeverley