User:Tagtheworld/weitere-themen
Jump to navigation
Jump to search
weiter Abfragetypen:
hier mit Around - Umgebungsbezug
/*
This has been generated by the overpass-turbo wizard.
The original search was:
“name=Berlin”
*/
[out:json][timeout:25];
// gather results
(
// query part for: “name=Berlin”
//node["name"="Berlin"]({{bbox}});
//way["name"="Berlin"]({{bbox}});
relation["name"="Berlin"]({{bbox}});
);
// print results
nwr(around:10000)["amenity"="hospital"];
out center;
ferner noch
[out:json][timeout:25];
// administrative relation laden
// admin_level = 6 (statt 8)
// weil Rosenheim kreisfreie Stadt
rel[admin_level=6][name=Rosenheim] ;
// out body;
// >; out skel;
nwr[amenity=hospital](around[]:20000);
out body;
>; out skel;
wichtig auch dieser Hinweis: In einer Distanz vom x km um den Mittelpunkt der Area herum oder x km um die Umrisslinie von einer Area herum? Sprich Beispiel Krankenhäuser in 10km Umkreis von Berlin, Abstand nun vom Mittelpunkt oder von den Stadtgrenze Berlin aus? Macht ja ein gewaltigen Unterschied teilweise aus
hier mit telefonnummer - phone-number:
[out:csv(::id,::type,::lon, ::lat, "name","addr:postcode","addr:city","addr:street","addr:housenumber","contact:phone","contact:website"," contact:email")][timeout:600];
area["ISO3166-1"="BR"]->.brazil;
area["ISO3166-1"="AR"]->.argentina;
area["ISO3166-1"="VE"]->.venezuela;
area["ISO3166-1"="PE"]->.peru;
area["ISO3166-1"="CL"]->.chile;
/* more areas..*/
(
nwr[amenity=hospital](area.brazil);
nwr[amenity=hospital](area.argentina);
nwr[amenity=hospital](area.venezuela);
nwr[amenity=hospital](area.peru);
nwr[amenity=hospital](area.chile);
/* other queries... */
);
out center;
/*
This has been generated by the overpass-turbo wizard.
The original search was:
“hospital”
*/
[out:json][timeout:2500];
// gather results
(
// query part for: “hospital”
node["amenity"="hospital"](-9.39288367353, 35.946850084, 3.03948408368, 43.7483377142);
way["amenity"="hospital"](-9.39288367353, 35.946850084, 3.03948408368, 43.7483377142);
relation["amenity"="hospital"](-9.39288367353, 35.946850084, 3.03948408368, 43.7483377142);
);
// print results
out body;
>;
[out:csv(::id,::type,"name","addr:postcode","addr:city","addr:street","addr:housenumber","website"," contact:email=*")][timeout:300];
area[name="Paris"]->.a;
( node(area.a)["shop"="car"];
way(area.a)["service"="dealer"];
rel(area.a)["service"="repair"];
node(area.a)["brand"="renault"];);
out;
/*
This has been generated by the overpass-turbo wizard.
The original search was:
“(service~repair or shop=car_repair) and brand~Renault in Germany”
*/
[out:json][timeout:100];
// fetch area “Germany” to search in
{{geocodeArea:Germany}}->.searchArea;
// gather results
(
// query part for: “service~repair and brand~Renault”
node["service"~"repair"]["brand"~"Renault"](area.searchArea);
way["service"~"repair"]["brand"~"Renault"](area.searchArea);
relation["service"~"repair"]["brand"~"Renault"](area.searchArea);
// query part for: “shop=car_repair and brand~Renault”
node["shop"="car_repair"]["brand"~"Renault"](area.searchArea);
way["shop"="car_repair"]["brand"~"Renault"](area.searchArea);
relation["shop"="car_repair"]["brand"~"Renault"](area.searchArea);
);
// print results
out body;
>;
out skel qt;