Skip to content

Instantly share code, notes, and snippets.

@jothirnadh
Last active March 10, 2016 10:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jothirnadh/625394a473e506a82df9 to your computer and use it in GitHub Desktop.
Save jothirnadh/625394a473e506a82df9 to your computer and use it in GitHub Desktop.

Workflow to delete the wrongly tagged turn lanes

  • Extracted all the wrongly tagged turn lanes using Overpass turbo:

Query used in overpass turbo

/*
This has been generated by the overpass-turbo wizard.
The original search was:
“turn:lanes='||||' or turn:lanes='|||' or turn:lanes='||' or turn:lanes='|'”
*/
[out:json][timeout:25];
// gather results
(
  way["turn:lanes:backward"="||||"]({{bbox}});
  way["turn:lanes:backward"="|||"]({{bbox}});
  way["turn:lanes:backward"="||"]({{bbox}});
  way["turn:lanes:backward"="|"]({{bbox}});
  way["turn:lanes:forward"="||||"]({{bbox}});
  way["turn:lanes:forward"="|||"]({{bbox}});
  way["turn:lanes:forward"="||"]({{bbox}});
  way["turn:lanes:forward"="|"]({{bbox}});
  way["turn:lanes"="||||"]({{bbox}});
  way["turn:lanes"="|||"]({{bbox}});
  way["turn:lanes"="||"]({{bbox}});
  way["turn:lanes"="|"]({{bbox}});
);
// print results
out body;
>;
out skel qt;
  • There are a total of 4206 wrongly tagged turn lanes
  • Extracted each tag separately and loaded the extracted data into JOSM
  • Activated the type:node filter in JOSM with an active hide option
  • Selected all the loaded roads in JOSM and deleted the appropriate tag and uploaded it back to OpenStreetMap
Assigned tag Number
turn:lanes:backward=* 1905
turn:lanes:forward="|" 1650
turn:lanes:forward="||" 233
turn:lanes:forward="|||" 3
turn:lanes="|" 241
turn:lanes="||" 94
turn:lanes="|||" 28
turn:lanes="||||" 52
Total 4206
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment