Skip to content

Instantly share code, notes, and snippets.

@CharlesNepote
Forked from cliffordsnow/test.md
Last active May 24, 2018 07:54
Show Gist options
  • Save CharlesNepote/889ec3999adb7fb67607 to your computer and use it in GitHub Desktop.
Save CharlesNepote/889ec3999adb7fb67607 to your computer and use it in GitHub Desktop.

Download OSM Data

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

<!--
This script finds charging_station in Isère.
For other objects, see: http://wiki.openstreetmap.org/wiki/Map_Features
-->
<osm-script output="json"
    timeout="900"
    element-limit="1073741824"
{{value=car_sharing}}
>

<!--
Some tags:
car_sharing
cafe
college
charging_station
-->


<id-query {{nominatimArea:"Isère"}} into="area"/>

<!-- gather results -->
<union>
    <query type="node">
        <has-kv k="amenity" v="{{value}}" />
        <area-query from="area"/>
    </query>
    <query type="way">
        <has-kv k="amenity" v="{{value}}" />
        <area-query from="area"/>
    </query>
    <query type="relation">
        <has-kv k="amenity" v="{{value}}" />
        <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 "Isère" to your place.

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