Categories
Lezioni

Esempi con Overpass TURBO

Link utili

  1. http://wiki.openstreetmap.org/wiki/Overpass_turbo
  2. http://wiki.openstreetmap.org/wiki/Overpass_turbo/Examples
  3. http://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL
  4. ESTRATTI (comuni) http://osm-estratti.wmflabs.org/estratti/
  5. WORLD http://download.geofabrik.de/
  6. https://mapzen.com/data/metro-extracts/
  7. http://overpass-turbo.eu/

[buttonyoutube]https://goo.gl/xLX0Pg[/buttonyoutube]

Esempi di query

Pub in Dublin > http://overpass-turbo.eu/s/lff

/*
This has been generated by the overpass-turbo wizard.
The original search was:
“pub in dublin”
*/
[out:json][timeout:25];
// fetch area “dublin” to search in
{{geocodeArea:dublin}}->.searchArea;
// gather results
(
// query part for: “pub”
node"amenity"="pub";
way"amenity"="pub";
relation"amenity"="pub";
);
// print results
out body;
;
out skel qt;

Hotel in Milan > http://overpass-turbo.eu/s/lfj

/*

This has been generated by the overpass-turbo wizard.

The original search was:

“hotel in Milan”

*/

[out:json][timeout:25];

// fetch area “Milan” to search in

{{geocodeArea:Milan}}->.searchArea;

// gather results

(

  // query part for: “hotel”

  node["tourism"="hotel"](area.searchArea);

  way["tourism"="hotel"](area.searchArea);

  relation["tourism"="hotel"](area.searchArea);

);

// print results

out body;

>;

out skel qt;

Hotel ne quartiere Loreto > http://overpass-turbo.eu/s/lfk

Per trovare il Quartiere Loreto: https://www.openstreetmap.org/relation/6798602#map=16/45.4890/9.2174

[out:json][timeout:25];
area[name="Loreto"][place=quarter]->.a;
node(area.a)[tourism=hotel];
out;

Around place > http://overpass-turbo.eu/s/lfl

area[name="Loreto"][place=quarter];

node(area);

node(around:1000)[tourism=hotel];

out;

In due quartieri > http://overpass-turbo.eu/s/lfp

[out:json][timeout:25];
area[name="Loreto"][place=quarter]->.a;
area[name="Casoretto"][place=quarter]->.b;
(node(area.a)[tourism=hotel] ;
node(area.b)[tourism=hotel];);
out;

Bus stop in area > http://overpass-turbo.eu/s/lfq

area[name="Bonn"]; node(area)[highway=bus_stop]; node(around:100)[amenity=cinema]; out;

By pjhooker

Tutti mi chiamano "uomo del gis" ... i software così detti GIS (Geographic information system) hanno accompagnato il mio percorso di studi universitario, fin dalle prime elaborazioni, quando mi fecero calcolare la lunghezza di una pista ciclabile e l'area di un bosco ... per un po' di mesi, mi chiedevo perché non mi facevano usare il mio amato AutoCad, visto che lo usavo già da 3-4 anni ... ma poi ho capito la differenza ... e tutto cambiò!