Skip to content

Instantly share code, notes, and snippets.

@ianlopez1115
Last active November 28, 2021 02:26
Show Gist options
  • Save ianlopez1115/f20625a09dd84a393c7c to your computer and use it in GitHub Desktop.
Save ianlopez1115/f20625a09dd84a393c7c to your computer and use it in GitHub Desktop.
[out:xml][timeout:50];
(
nwr["highway"]["maxspeed"]({{bbox}});
);
out body;
>;
out skel qt;
{{style:
way[maxspeed]
{color:black;width:4;opacity:1;}
way[tunnel][tunnel!=no]
{opacity:0.3;}
way[maxspeed=100]
{color:green; width:5;}
way[maxspeed=95]
{color:green; width:5;}
way[maxspeed=90]
{color:green; width:5;}
way[maxspeed=85]
{color:green; width:5;}
way[maxspeed=80]
{color:green; width:5;}
way[maxspeed=75]
{color:green; width:5;}
way[maxspeed=70]
{color:green; width:5;}
way[maxspeed=65]
{color:yellow; width:5;}
way[maxspeed=60]
{color:yellow; width:5;}
way[maxspeed=55]
{color:yellow; width:5;}
way[maxspeed=50]
{color:yellow; width:5;}
way[maxspeed=45]
{color:orange; width:5;}
way[maxspeed=40]
{color:orange; width:5;}
way[maxspeed=35]
{color:orange; width:5;}
way[maxspeed=30]
{color:orange; width:5;}
way[maxspeed=25]
{color:red; width:5;}
way[maxspeed=20]
{color:red; width:5;}
way[maxspeed=15]
{color:red; width:5;}
way[maxspeed=10]
{color:red; width:5;}
way[maxspeed=5]
{color:red; width:5;}
}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment