2020-06-26 00:06:30 +02:00
|
|
|
---
|
|
|
|
title: "OpenStreetMap overlay example"
|
|
|
|
date: 2020-05-19
|
2021-03-12 18:12:41 +01:00
|
|
|
description: An example of how to query things visually on OpenStreetMap
|
|
|
|
tags:
|
|
|
|
- toolbox
|
2020-06-26 00:06:30 +02:00
|
|
|
---
|
|
|
|
|
2021-03-12 18:12:41 +01:00
|
|
|
## 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 :
|
2023-04-23 22:33:49 +02:00
|
|
|
```html
|
2020-06-26 00:06:30 +02:00
|
|
|
<osm-script>
|
|
|
|
<query type="node">
|
|
|
|
<has-kv k="amenity" v="recycling"/>
|
|
|
|
<bbox-query {{bbox}}/>
|
|
|
|
</query>
|
|
|
|
<!-- print results -->
|
|
|
|
<print mode="body"/>
|
|
|
|
</osm-script>
|
2023-04-23 22:33:49 +02:00
|
|
|
```
|
2021-03-12 18:12:41 +01:00
|
|
|
|
|
|
|
This example will highlight the recycling points near a target location. From there you can build almost any filter you can think of!
|