Overpass API: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(öV-Routen inkl. aller Koordinaten abfragen) |
Stefan (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| (46 dazwischenliegende Versionen von 3 Benutzern werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
Overpass API - | '''Overpass API - Gefilterter Download von [[OpenStreetMap]]-Daten in der nativen Struktur Nodes, Ways, Relations.''' | ||
Overpass Turbo Services (interaktive Webapp): '''>> Weltweit: http://overpass-turbo.eu/ <<''', Schweiz: http://overpass-turbo.osm.ch/ , Deutschland: http://overpass-api.de/ | |||
Overpass QL Query Beispiele: | |||
* Overpass API | * >> '''[[Overpass QL Beispiele]]''' << | ||
* | * Overpass API by Example: https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_API_by_Example | ||
* Gute "thirsparty" Dokus. https://osm-queries.ldodds.com/for-local-mappers/index.html und https://publish.obsidian.md/dukera-gewel/How+to+Use+Overpass+Turbo | |||
Prompt für '''>> ChatGPT & Co. <<''' (Copy & Paste und ersetze "user query"): | |||
<pre> | <pre> | ||
Convert the following natural language query into valid Overpass QL syntax: | |||
Natural Language Query: | |||
<<Insert user query here>>. | |||
Requirements: | |||
* The generated Overpass QL query must adhere to this [EBNF specification](https://gist.githubusercontent.com/sfkeller/43800cd64014d17c55e40fa5e877fd6a/raw/3410bd8817e47c86e5695388a96ba1db5c0630a7/Overpass_QL_EBNF_v0.2_ChatGPT_generated.txt). | |||
* Ensure the use of appropriate tags (with both key and value) sourced from the [OpenStreetMap Wiki](https://wiki.openstreetmap.org/wiki/DE:How_to_map_a) and from [Beautified JOSM presets](https://raw.githubusercontent.com/simonpoole/beautified-JOSM-preset/master/master_preset.xml) to align with the user's intent. | |||
* Prefer geocoding with `geocodeArea` for region-specific queries rather than `area["name"=...]` unless a relation, an OSM Id or a geographic wikidata item is given. | |||
* Use `nwr` to cover nodes, ways and relations, unless the query requires distinct nodes, ways, or relations. | |||
* Prefer JSON output with `out center` over `out geom` unless there are no nodes involved. | |||
[ | |||
out | |||
</pre> | </pre> | ||
* Beispiele für erfolgreiche "user queries": | |||
** All restaurants including fast_food in Rapperswil-Jona | |||
** All bars around 3000 meters from the adress "Bahnhof Rapperswil-Jona" | |||
** All restaurants within 3000 meters of a public stop in of Switzerland | |||
** All restaurants in Kanton Glarus within 200 meters of public transport stops (station, bus_stop, tram_stop, funicular) | |||
* Beispiele für nicht erfolgreiche "user queries": Mountain passes of Switzerland which are navigable with a lake nearby" - siehe [[Overpass QL Beispiele]]. | |||
Einstieg in Overpass QL und API: | |||
* >> '''"Offizielles" Handbuch zur Overpass API: https://dev.overpass-api.de/overpass-doc/de/ <<''' | |||
* "Learn Overpass": http://osmlab.github.io/learnoverpass//en/ | |||
* Getting Started with Overpass Turbo (2020): https://nixintel.info/osint-tools/getting-started-with-overpass-turbo-part-1/ | |||
* Tutorial: https://osm-queries.ldodds.com/tutorial/index.html | |||
* Blog: https://dev.overpass-api.de/blog/ | |||
Overpass QL Language Documentation: | |||
* http://wiki.osm.org/wiki/Overpass_API | |||
* https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL | |||
* https://wiki.openstreetmap.org/wiki/Overpass_API/Language_Guide | |||
) | * [[Overpass API EBNF]] (experimental) | ||
Support: | |||
* Mailing list: http://listes.openstreetmap.fr/wws/info/overpass | |||
* https://help.openstreetmap.org/questions/20479/using-osm-data-with-javascript-via-api-in-my-code-display-data-as-text | |||
Siehe auch: | |||
* [[OSM-Technisches]] | |||
* [[HowTo OpenStreetMap]] | |||
* [https://stackoverflow.com/questions/tagged/overpass-api Stackoverflow 'overpass-api'] | |||
[[Kategorie:Howto]] | [[Kategorie:Howto]] | ||
[[Kategorie:OpenStreetMap]] | [[Kategorie:OpenStreetMap]] | ||
[[Kategorie:Overpass]] | |||
Aktuelle Version vom 6. Dezember 2024, 11:43 Uhr
Overpass API - Gefilterter Download von OpenStreetMap-Daten in der nativen Struktur Nodes, Ways, Relations.
Overpass Turbo Services (interaktive Webapp): >> Weltweit: http://overpass-turbo.eu/ <<, Schweiz: http://overpass-turbo.osm.ch/ , Deutschland: http://overpass-api.de/
Overpass QL Query Beispiele:
- >> Overpass QL Beispiele <<
- Overpass API by Example: https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_API_by_Example
- Gute "thirsparty" Dokus. https://osm-queries.ldodds.com/for-local-mappers/index.html und https://publish.obsidian.md/dukera-gewel/How+to+Use+Overpass+Turbo
Prompt für >> ChatGPT & Co. << (Copy & Paste und ersetze "user query"):
Convert the following natural language query into valid Overpass QL syntax: Natural Language Query: <<Insert user query here>>. Requirements: * The generated Overpass QL query must adhere to this [EBNF specification](https://gist.githubusercontent.com/sfkeller/43800cd64014d17c55e40fa5e877fd6a/raw/3410bd8817e47c86e5695388a96ba1db5c0630a7/Overpass_QL_EBNF_v0.2_ChatGPT_generated.txt). * Ensure the use of appropriate tags (with both key and value) sourced from the [OpenStreetMap Wiki](https://wiki.openstreetmap.org/wiki/DE:How_to_map_a) and from [Beautified JOSM presets](https://raw.githubusercontent.com/simonpoole/beautified-JOSM-preset/master/master_preset.xml) to align with the user's intent. * Prefer geocoding with `geocodeArea` for region-specific queries rather than `area["name"=...]` unless a relation, an OSM Id or a geographic wikidata item is given. * Use `nwr` to cover nodes, ways and relations, unless the query requires distinct nodes, ways, or relations. * Prefer JSON output with `out center` over `out geom` unless there are no nodes involved.
- Beispiele für erfolgreiche "user queries":
- All restaurants including fast_food in Rapperswil-Jona
- All bars around 3000 meters from the adress "Bahnhof Rapperswil-Jona"
- All restaurants within 3000 meters of a public stop in of Switzerland
- All restaurants in Kanton Glarus within 200 meters of public transport stops (station, bus_stop, tram_stop, funicular)
- Beispiele für nicht erfolgreiche "user queries": Mountain passes of Switzerland which are navigable with a lake nearby" - siehe Overpass QL Beispiele.
Einstieg in Overpass QL und API:
- >> "Offizielles" Handbuch zur Overpass API: https://dev.overpass-api.de/overpass-doc/de/ <<
- "Learn Overpass": http://osmlab.github.io/learnoverpass//en/
- Getting Started with Overpass Turbo (2020): https://nixintel.info/osint-tools/getting-started-with-overpass-turbo-part-1/
- Tutorial: https://osm-queries.ldodds.com/tutorial/index.html
- Blog: https://dev.overpass-api.de/blog/
Overpass QL Language Documentation:
- http://wiki.osm.org/wiki/Overpass_API
- https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL
- https://wiki.openstreetmap.org/wiki/Overpass_API/Language_Guide
- Overpass API EBNF (experimental)
Support:
- Mailing list: http://listes.openstreetmap.fr/wws/info/overpass
- https://help.openstreetmap.org/questions/20479/using-osm-data-with-javascript-via-api-in-my-code-display-data-as-text
Siehe auch: