Skip to content

Instantly share code, notes, and snippets.

@all3kcis
Last active April 19, 2019 10:27
Show Gist options
  • Save all3kcis/4b8edcd2d45abd38aa92a3ea39ba590f to your computer and use it in GitHub Desktop.
Save all3kcis/4b8edcd2d45abd38aa92a3ea39ba590f to your computer and use it in GitHub Desktop.
Export GPX and others from OpenStreetMap - OSM - JSON - GEOJSON

Locate your element on : https://www.openstreetmap.org/
Right click "Interroger les objects"
Copie wikidata code : like "Q12782"
Going to http://overpass-turbo.eu/
Replace code into script bellow and click "Export" ;)

/*
This has been generated by the overpass-turbo wizard.
The original search was:
“"wikidata"="" global”
*/
[out:json][timeout:25];
// gather results
(
  // query part for: “wikidata=Q12782”
  relation["wikidata"="Q12782"];
);
// print results
out body;
>;
out skel qt;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment