aboutsummaryrefslogtreecommitdiff
path: root/content/blog/miscellaneous/osm-overlay-example.md
blob: bff86b553e1732e4b7e064187c2db32e2b2c4321 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
---
title: "OpenStreetMap overlay example"
date: 2020-05-19
description: An example of how to query things visually on OpenStreetMap
tags:
  - 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 :
```html
<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!