User:Hofoen/QA

From OpenStreetMap Wiki
Jump to navigation Jump to search

Access

Missing Track Signs

Overpass

[bbox:{{bbox}}];
node[traffic_sign]->.ts;
node(around.ts:50)->.near;

way[highway=track]->.w1;
way[highway][highway!=track][highway!=path][highway!=cycleway][highway!=footway]->.w2;
node(w.w1)(w.w2)->.allnodes;

(.allnodes; - .near;);

out;

Public Transport

Subway Entrance Not Part of Stop Area (railway=subway_entrance)

Overpass

area[name="Nordrhein-Westfalen"];
node(area)[railway=subway_entrance]->.all;
rel[public_transport=stop_area](bn.all)->.wr;
node(r.wr)->.wr;
( .all; - .wr; );
out meta;

JOSM

railway=subway_entrance -child(type:relation public_transport=stop_area)

Isolated Train Stop Positions (train=yes)

Overpass

area[name="Deutschland"];
node(area)["public_transport"="stop_position"]["train"="yes"] -> .n;
way["railway"](bn.n) -> .w;
node(w.w)["public_transport"="stop_position"] -> .wn;
(.n; - .wn;);
out;

Stop Positions w/o Stop Area (train=yes)

Overpass

area[name="Mecklenburg-Vorpommern"];
node(area)["public_transport"="stop_position"]["train"="yes"]["usage"!="tourism"]->.all;
rel[public_transport=stop_area](bn.all)->.wr;
node(r.wr)->.wr;
( .all; - .wr; );
out meta;

Tracks Relation vs. Way Tagging (route=tracks)

Overpass

area[name="Deutschland"];
way(area)["ref"="2990"]["railway"="rail"]["service"!="crossover"]->.ways;
rel["ref"="2990"][route=tracks]->.track;
way(r.track)->.track;
( .ways; - .track; ) -> .ways;
.ways;
(._;>;);
out meta;