User:Hugi99/Workbench/uMap Berner Brunnentour
< User:Hugi99 | Workbench
Jump to navigation
Jump to search
The beef
Interaktive uMap Karte Berner Brunnentour mit automatischen Bilderstrecken (Slideshows) von 2-3 verschieden langen oder geographisch / thematisch verschiedenen (Rund)wegen.
Schrittweise Anleitung
Grundlage
- Using Overpass with uMap - Step-by-step tutorial - source: mappa-mercia.org (quite cool Community initiative)
- Hints, tipps and tricks by Yohan Boniface - source: openstreetmap.org/user/ybon/diary
Anleitung für uMap mit einer Ebene amenity=fountain in der Gemeinde Bern
Es wird nur der genannte Schlüssel (key), ohne Wert (value) verwendet.
1. Online Werkezug OverPass Turbo Swiss edition aufrufen oder alternativ Overpass Turbo. - Quellen: overpass-turbo.osm.ch oder overpass-turbo.eu
2.1. Code eingeben und Abfrage generieren
/* This has been generated by the overpass-turbo wizard. The original search was: "amenity"="fountain" */ [out:json][timeout:25]; // gather results ( // query part for: "amenity"="fountain" area[name="Bern"][admin_level=8][boundary=administrative]->.gemeinde; node(area.gemeinde) ["amenity"="fountain"]({{bbox}}); area[name="Bern"][admin_level=8][boundary=administrative]->.gemeinde; way(area.gemeinde) ["amenity"="fountain"]({{bbox}}); area[name="Bern"][admin_level=8][boundary=administrative]->.gemeinde; relation(area.gemeinde) ["amenity"="fountain"]({{bbox}}); ); // print results out center;
2.2 Export anklicken und im Pop-up Fenster Query wählen und dort convert to (compact) anklicken.
2.3 Der, durch anklicken von von convert to compact erzeugte Link zeigt unter Your query in compact Overpass QL:
https://overpass.osm.ch/api/interpreter?data=%5Bout%3Ajson%5D%5Btimeout%3A25%5D%3B%28area%5B%22name%22%3D%22Bern%22%5D%5B%22admin%5Flevel%22%3D%228%22%5D%5B%22boundary%22%3D%22administrative%22%5D%2D%3E%2Egemeinde%3Bnode%28area%2Egemeinde%29%5B%22amenity%22%3D%22fountain%22%5D%2846%2E90911565467664%2C7%2E360153198242187%2C46%2E98692755282082%2C7%2E5110435485839835%29%3Barea%5B%22name%22%3D%22Bern%22%5D%5B%22admin%5Flevel%22%3D%228%22%5D%5B%22boundary%22%3D%22administrative%22%5D%2D%3E%2Egemeinde%3Bway%28area%2Egemeinde%29%5B%22amenity%22%3D%22fountain%22%5D%2846%2E90911565467664%2C7%2E360153198242187%2C46%2E98692755282082%2C7%2E5110435485839835%29%3Barea%5B%22name%22%3D%22Bern%22%5D%5B%22admin%5Flevel%22%3D%228%22%5D%5B%22boundary%22%3D%22administrative%22%5D%2D%3E%2Egemeinde%3Brelation%28area%2Egemeinde%29%5B%22amenity%22%3D%22fountain%22%5D%2846%2E90911565467664%2C7%2E360153198242187%2C46%2E98692755282082%2C7%2E5110435485839835%29%3B%29%3Bout%20body%20center%3B%0A
dieser Link wird als Text:
[out:json][timeout:25];(area["name"="Bern"]["admin_level"="8"]["boundary"="administrative"]->.gemeinde; node(area.gemeinde)["amenity"="fountain"](46.90172702373143,7.354145050048827,46.97954965435394,7.505035400390625);area["name"="Bern"]["admin_level"="8"]["boundary"="administrative"]->.gemeinde; way(area.gemeinde)["amenity"="fountain"](46.90172702373143,7.354145050048827,46.97954965435394,7.505035400390625);area["name"="Bern"]["admin_level"="8"]["boundary"="administrative"]->.gemeinde; relation(area.gemeinde)["amenity"="fountain"](46.90172702373143,7.354145050048827,46.97954965435394,7.505035400390625););out body center;
https://overpass.osm.ch/api/interpreter?data=[out:json][timeout:25];(area["name"="Bern"]["admin_level"="8"]["boundary"="administrative"]->.gemeinde;node(area.gemeinde)["amenity"="fountain"](46.90172702373143,7.354145050048827,46.97954965435394,7.505035400390625);area["name"="Bern"]["admin_level"="8"]["boundary"="administrative"]->.gemeinde;way(area.gemeinde)["amenity"="fountain"](46.90172702373143,7.354145050048827,46.97954965435394,7.505035400390625);area["name"="Bern"]["admin_level"="8"]["boundary"="administrative"]->.gemeinde;relation(area.gemeinde)["amenity"="fountain"](46.90172702373143,7.354145050048827,46.97954965435394,7.505035400390625););out body center;