www/content/blog/miscellaneous/osm-overlay-example.md

705 B

title date description tags
OpenStreetMap overlay example 2020-05-19 An example of how to query things visually on OpenStreetMap
toolbox

The problem

OpenStreetMap is a great resource and there is a lot more information stored there than you can easily see.

The solution

Go to http://overpass-turbo.eu/ and enter a filter script similar to the following :

<osm-script>
  <query type="node">
    <has-kv k="amenity" v="recycling"/>
    <bbox-query {{bbox}}/>
  </query>
  <!-- print results -->
  <print mode="body"/>
</osm-script>

This example will highlight the recycling points near a target location. From there you can build almost any filter you can think of!