User:Ika-chan!/Overpass Turbo

From OpenStreetMap Wiki
Jump to navigation Jump to search
Main article: Overpass Turbo

Highways

Overpass queries

Dual carriageways and frontage roads

try it yourself in overpass-turbo
try it yourself in overpass-turbo
[out:json][timeout:600];
(
  area["name:en"="Attica"]->.boundaryarea;
  way["highway"="motorway"](area.boundaryarea);
  way["dual_carriageway"="yes"](area.boundaryarea);
  way["frontage_road"="yes"](area.boundaryarea);
);
out geom qt;

{{style:
way{opacity:0.6;width:2.5}
way[highway=motorway]{color:#0000ff}
way[dual_carriageway=yes]{color:#008000}
way[dual_carriageway=yes][highway=~/.*_link/]{color:#00ff00}
way[frontage_road=yes]{color:#ff8000}
way[frontage_road=yes][highway=~/.*_link/]{color:#ff0000}
}}

Greek road network

try it yourself in overpass-turbo
try it yourself in overpass-turbo
[out:json][timeout:600];
{{geocodeArea:Greece}}->.searchArea;
relation["network"~"^GR:(motorway|national(_old)?)$"](area.searchArea);
out geom;

{{style:
relation{opacity:0.6;width:2.5}
relation[network=GR:motorway]{color:#008000}
relation[network=GR:national][ref]{color:#0000ff}
relation[network=GR:national][ref:esye]{color:#0000ff}
relation[network=GR:national_old]{color:#0080ff}
}}

Greek road relations not last edited by ika-chan!

try it yourself in overpass-turbo
try it yourself in overpass-turbo
[out:json][timeout:600];
{{geocodeArea:Greece}}->.greece;
relation["network"~"^GR:(motorway|national(_old)?)$"](area.greece)->.roads;
(.roads; - relation.roads(uid:4763179);)->.roads;
.roads out geom;

Greek road relations proofreading

try it yourself in overpass-turbo
try it yourself in overpass-turbo
[out:json][timeout:600];
{{geocodeArea:Greece}}->.greece;
relation["network"~"^GR:(motorway|national(_old)?)$"](newer:"2025-12-18T00:45:00Z")(area.greece)->.roads;
(.roads; - relation.roads(uid:4763179);)->.roads;
.roads out geom;

Motorway operators

try it yourself in overpass-turbo
try it yourself in overpass-turbo
[out:json][timeout:600];
{{geocodeArea:Greece}}->.searchArea;
(
  node["marker"]["operator:type"="motorway"](area.searchArea);
  way["highway"]["operator"](area.searchArea);
);
out geom;

{{style:
node{symbol-fill-color:#000;symbol-fill-opacity:0.5;symbol-size:2;symbol-stroke-width:0}
way{color:#C0C0C0;opacity:1;width:2.5}
way[operator=Αυτοκινητόδρομος Αιγαίου]{color:#FF0000}
way[operator=Γέφυρα Α.Ε.]{color:#FF8000}
way[operator=Εγνατία Οδός Α.Ε.]{color:#FFFF00}
way[operator=Κεντρική Οδός]{color:#00FF00}
way[operator=Μορέας]{color:#008000}
way[operator=Νέα Αττική Οδός]{color:#00FFFF}
way[operator=Νέα Οδός]{color:#0080FF}
way[operator=Ολυμπία Οδός]{color:#0000FF}
way[operator=Περιφέρεια Αττικής]{color:#800080}
}}

Elements last edited by Delta Evas ALL and sockpuppets

try it yourself in overpass-turbo
try it yourself in overpass-turbo
[out:json][timeout:600];
{{geocodeArea:Greece}}->.searchArea;
(
  nwr(uid:9583149)(area.searchArea);
  nwr(user:"gasz")(area.searchArea);
)->.useredit;
(.useredit; - node.useredit(if:count_tags() == 0);)->.useredit;
.useredit out geom;

Wizard queries

Main country Description Query
Greece Find motorway or national road numbers that use non-Greek characters. type:way and highway=* and ref~"^(A|E(O|Ο)|ΕO)" in Greece
Greece Find motorway or national road numbers without a source. type:way and highway=* and highway!~"(construction|proposed)" and ref~"^(Α|ΕΟ)" and "source:ref"!~"^(Mapillary \\(2025-|Ministerial Decision|Register of National Roads)" in Greece
Greece Find old motorway or national road numbers without a source, except for those that were merely renumbered. type:way and highway=* and highway!~"(construction|proposed)" and old_ref~"^(Α|ΕΟ)" and old_ref!~"^Α6(2|4)" and "source:old_ref"!~"^(Mapillary \\(2025-|Ministerial Decision|Register of National Roads)" in Greece
Greece Find ESYE motorway or national road numbers without a source, except for aliases. type:way and highway=* and highway!~"(construction|proposed)" and "ref:esye"=* and "ref:esye"!~"^ΕΟ(38β|65δ|9γ)$" and "source:ref:esye"!~"^(Ministerial Decision|Register of National Roads)" in Greece
Greece Trace a motorway. type:way and highway=* and (ref~"(^|;)Α6(;|$)" or old_ref~"(^|;)Α6(;|$)") in Greece
Greece Trace a national road. type:way and highway=* and (ref~"(^|;)ΕΟ6(;|$)" or old_ref~"(^|;)ΕΟ6(;|$)") in Greece
Greece Find one-way roads that are not tagged as dual carriageways or frontage roads. type:way and highway~"^(trunk|primary|secondary|tertiary)$" and oneway=yes and dual_carriageway!=* and frontage_road!=* in Greece