Skip to content

Instantly share code, notes, and snippets.

@marguslt
Last active October 1, 2020 10:04
Show Gist options
  • Save marguslt/43e5bc1b72e535bab8ecff26d29660b1 to your computer and use it in GitHub Desktop.
Save marguslt/43e5bc1b72e535bab8ecff26d29660b1 to your computer and use it in GitHub Desktop.
OSM Overpass API snippets - overpass-turbo.eu/
/*
query bridlways, style according to "foot" tag
seems that without "foot" many routers currently ignore those paths, even though in UK
https://overpass-turbo.eu/s/Pli
*/
[out:json];
(
way[highway=bridleway][designation=public_bridleway]({{bbox}});
);
out body;
>;
out skel qt;
{{style: /* this is the MapCSS stylesheet */
way[highway=bridleway][foot=yes]
{ color:green;}
way[highway=bridleway][foot!=yes]
{ color:red;}
}}
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment