Skip to content

Instantly share code, notes, and snippets.

@cliffordsnow
Created October 8, 2014 21:05
Show Gist options
  • Save cliffordsnow/6e20d0387f5059985796 to your computer and use it in GitHub Desktop.
Save cliffordsnow/6e20d0387f5059985796 to your computer and use it in GitHub Desktop.
overpass example
<!--
This has been generated by the overpass-turbo wizard.
The original search was:
“railway=rail in washington”
-->
<osm-script output="json" timeout="25">
<!-- fetch area “washington” to search in -->
<id-query {{nominatimArea:washington}} into="area"/>
<!-- gather results -->
<union>
<!-- query part for: “railway=rail” -->
<query type="node">
<has-kv k="railway" v="rail"/>
<area-query from="area"/>
</query>
<query type="way">
<has-kv k="railway" v="rail"/>
<area-query from="area"/>
</query>
<query type="relation">
<has-kv k="railway" v="rail"/>
<area-query from="area"/>
</query>
</union>
<!-- print results -->
<print mode="body"/>
<recurse type="down"/>
<print mode="skeleton" order="quadtile"/>
</osm-script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment