Skip to content

Instantly share code, notes, and snippets.

@geomantic
Created February 26, 2019 00:54
Show Gist options
  • Save geomantic/8932e36e5afe1d1e812ade66df2a523b to your computer and use it in GitHub Desktop.
Save geomantic/8932e36e5afe1d1e812ade66df2a523b to your computer and use it in GitHub Desktop.
/*
This has been generated by the overpass-turbo wizard.
The original search was:
“type=restriction”
*/
[out:json][timeout:300];
// gather results
(
// query part for: “type=restriction”
node["highway"="traffic_signals"]({{bbox}});
node["highway"="motorway_junction"]({{bbox}});
way["maxspeed"]({{bbox}});
way["access"]({{bbox}});
way["destination"]({{bbox}});
way["lanes"]({{bbox}});
way[~"^turn:.*$"~"."]({{bbox}});
relation["type"="restriction"]({{bbox}});
);
// print results
out body;
>;
out skel qt;
{{style:
node[highway=traffic_signals]{
symbol-size:10;
fill-color:red;
}
node[highway=motorway_junction]{
text: ref;
}
way[destination]{
text: destination;
}
way[maxspeed]{
text: maxspeed;
color:green;
}
way[access]{
color:red;
text: access;
}
way[turn:lanes],way[turn:lanes:forward],way[turn:lanes:backward]{
color: yellow;
}
}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment