Skip to content

Instantly share code, notes, and snippets.

@cliffordsnow
Created March 23, 2014 21:28
Show Gist options
  • Save cliffordsnow/9730127 to your computer and use it in GitHub Desktop.
Save cliffordsnow/9730127 to your computer and use it in GitHub Desktop.
markdown fenced block

Download OSM Data

Overpass-Turbo has an easy method to obtain current data. Modify and run the fullowing script:

	<!--
	This script finds ways in Skagit County.
	-->
	<osm-script output="json" timeout="900" element-			limit="1073741824">
  	<id-query {{nominatimArea:"Skagit County"}} 			into="area"/>
  	<!-- gather results -->
  	<union>
    	<query type="way">
      		<has-kv k="highway" />
      		<area-query from="area"/>
    	</query>
  	</union>
  	<!-- print results -->
  	<print mode="body"/>
  	<recurse type="down"/>
  	<print mode="skeleton" order="quadtile"/>
	</osm-script>

Remember, change the nominatim search area from "Skagit County" to your county.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment