XAPI: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Stefan (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Stefan (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| Zeile 5: | Zeile 5: | ||
* [[PostGIS-Terminal#XAPI-to-Map]] | * [[PostGIS-Terminal#XAPI-to-Map]] | ||
Beispiele | == XAPI Services == | ||
(''NOTE: the original service and the software and hardware behind most OSM XAPI servers are instable and often offline''): | |||
* Aktueller Service: [http://wiki.openstreetmap.org/wiki/Xapi xapi.openstreetmap.org] | |||
* [http://openstreetmap.us/uixapi/xapi.html XAPI Helper Webtool on openstreetmap.us] | |||
* [http://open.mapquestapi.com/xapi/ XAPI Helper Webtool from Mapquest] | |||
== XAPI Projekte == | |||
# Projekt 'XAPI - The original': Mumps und GT.M (no comment...!?!) | |||
# Projekt '[http://wiki.openstreetmap.org/wiki/Xapi#Java JXAPI]': [https://github.com/iandees/xapi-servlet Source] - Reimplementation als Java Servlet mit PostgreSQL by Ian Dees => [https://github.com/iandees/xapi-servlet XAPI-Servlet] | |||
# Projekt '[https://github.com/slomo/osm-spline-xapi osm-spline-xapi]' - Reimplementation in serverside JavaScript mit PostGIS. | |||
# Projekt [[PostGIS-Terminal#XAPI-to-Map|XAPI-to-Map]] | |||
== Dokumentation == | |||
* [http://wiki.openstreetmap.org/wiki/Xapi OSM XAPI] | |||
* Query-Syntax: ANTRL-Syntax [https://github.com/iandees/xapi-antlr/blob/master/src/main/antlr3/com/yellowbkpk/geo/xapi/antlr/XAPI.g], Query-Parser in Python [http://gitorious.org/osm-poi-tools/server/blobs/master/list/views.py] | |||
* JXAPI-Logs (live!): http://jxapi.openstreetmap.org/xapi/admin/stats sowie [http://fsi.spline.de/osm/xapi-access-23-01-2011.log.bz2 Log-Backup von XAPI] (unbestätigter Herkunft). | |||
== Beispiele == | |||
Hier konkrete, laufende XAPI-Beispiele: | |||
* Alle Zoos der Schweiz: http://jxapi.openstreetmap.org/xapi/api/0.6/node[tourism=zoo][bbox=5.9436,45.9358,10.6127,47.7319] | * Alle Zoos der Schweiz: http://jxapi.openstreetmap.org/xapi/api/0.6/node[tourism=zoo][bbox=5.9436,45.9358,10.6127,47.7319] | ||
* Knie's Kinderzoo: http://jxapi.openstreetmap.org/xapi/api/0.6/*[name=Knie's Kinderzoo] | * Knie's Kinderzoo: http://jxapi.openstreetmap.org/xapi/api/0.6/*[name=Knie's Kinderzoo] | ||
* jXAPI (weltweit): http://jxapi.openstreetmap.org/xapi/api/0.6/*%5Btourism=zoo%5D%5Bbbox=5.943,45.935,10.612,47.731%5D | |||
* MapQuest (weltweit): http://open.mapquestapi.com/xapi/api/0.6/*%tourism=zoo%5D%5Bbbox=5.943,45.935,10.612,47.731%5D | |||
* Xiala (Schweiz, ca. 2h behind OSM Planet): http://osm.xiala.net:8080/xapi/api/0.6/*%5Btourism=zoo%5D | |||
* Geometa HSR (Schweiz, alt): http://geometa.hsr.ch/xapi/api/0.6/*%5Btourism=zoo%5D | |||
* Defunct? | |||
** http://xapi.spline.de/api/0.6/*%5Btourism=zoo%5D%5Bbbox=5.943,45.935,10.612,47.731%5D | |||
** http://xapi.openstreetmap.org/api/0.6/*%tourism=zoo%5D%5Bbbox=5.943,45.935,10.612,47.731%5D | |||
Häufige Anfragen gemäss Logs: | |||
* [ | * *[amenity=*] | ||
* *[highway=bus_stop] | |||
* *[shop=*] | |||
* | * *[tourism=*] | ||
* | * node[railway=station] | ||
* | * relation[type=restriction] | ||
<tt> | |||
Use e.g. http://osm.xiala.net:8080/xapi/api/0.6 for a <xapi_service_url>: | |||
* [ | <xapi_service_url>/node[tourism=zoo] | ||
* [ | <xapi_service_url>/*[highway=bus_stop][bbox=5.943,45.935,10.612,47.731] | ||
<xapi_service_url>/node[amenity=hospital] | |||
<xapi_service_url>/node[natural=peak] | |||
<xapi_service_url>/*[power_source=nuclear] | |||
<xapi_service_url>/node[amenity=*][bbox=5.943,45.935,10.612,47.731] | |||
<xapi_service_url>/*[seamark:type=signal_station_warning] | |||
<xapi_service_url>/*[amenity=*][bbox=8.420,47.072,9.088,47.431] | |||
<xapi_service_url>/*[shop=*][bbox=8.420,47.072,9.088,47.431] | |||
<xapi_service_url>/*[tourism=*][bbox=8.420,47.072,9.088,47.431] | |||
<xapi_service_url>/node[railway=station][bbox=8.420,47.072,9.088,47.431] | |||
<xapi_service_url>/relation[type=restriction][bbox=8.420,47.072,9.088,47.431] | |||
</tt> | |||
Version vom 23. Juli 2011, 11:38 Uhr
XAPI ('zappy') X API zur OpenStreetMap-Datenbank. Ein Webservice mit einfachen Query-Möglichkeiten, der eine OSM XML-Datei zurückgibt. Recht beliebter OSM-Webservice, immer wieder überlastet.
Siehe auch:
XAPI Services
(NOTE: the original service and the software and hardware behind most OSM XAPI servers are instable and often offline):
- Aktueller Service: xapi.openstreetmap.org
- XAPI Helper Webtool on openstreetmap.us
- XAPI Helper Webtool from Mapquest
XAPI Projekte
- Projekt 'XAPI - The original': Mumps und GT.M (no comment...!?!)
- Projekt 'JXAPI': Source - Reimplementation als Java Servlet mit PostgreSQL by Ian Dees => XAPI-Servlet
- Projekt 'osm-spline-xapi' - Reimplementation in serverside JavaScript mit PostGIS.
- Projekt XAPI-to-Map
Dokumentation
- OSM XAPI
- Query-Syntax: ANTRL-Syntax [1], Query-Parser in Python [2]
- JXAPI-Logs (live!): http://jxapi.openstreetmap.org/xapi/admin/stats sowie Log-Backup von XAPI (unbestätigter Herkunft).
Beispiele
Hier konkrete, laufende XAPI-Beispiele:
- Alle Zoos der Schweiz: http://jxapi.openstreetmap.org/xapi/api/0.6/node[tourism=zoo][bbox=5.9436,45.9358,10.6127,47.7319]
- Knie's Kinderzoo: http://jxapi.openstreetmap.org/xapi/api/0.6/*[name=Knie's Kinderzoo]
- jXAPI (weltweit): http://jxapi.openstreetmap.org/xapi/api/0.6/*%5Btourism=zoo%5D%5Bbbox=5.943,45.935,10.612,47.731%5D
- MapQuest (weltweit): http://open.mapquestapi.com/xapi/api/0.6/*%tourism=zoo%5D%5Bbbox=5.943,45.935,10.612,47.731%5D
- Xiala (Schweiz, ca. 2h behind OSM Planet): http://osm.xiala.net:8080/xapi/api/0.6/*%5Btourism=zoo%5D
- Geometa HSR (Schweiz, alt): http://geometa.hsr.ch/xapi/api/0.6/*%5Btourism=zoo%5D
- Defunct?
Häufige Anfragen gemäss Logs:
- *[amenity=*]
- *[highway=bus_stop]
- *[shop=*]
- *[tourism=*]
- node[railway=station]
- relation[type=restriction]
Use e.g. http://osm.xiala.net:8080/xapi/api/0.6 for a <xapi_service_url>: <xapi_service_url>/node[tourism=zoo] <xapi_service_url>/*[highway=bus_stop][bbox=5.943,45.935,10.612,47.731] <xapi_service_url>/node[amenity=hospital] <xapi_service_url>/node[natural=peak] <xapi_service_url>/*[power_source=nuclear] <xapi_service_url>/node[amenity=*][bbox=5.943,45.935,10.612,47.731] <xapi_service_url>/*[seamark:type=signal_station_warning] <xapi_service_url>/*[amenity=*][bbox=8.420,47.072,9.088,47.431] <xapi_service_url>/*[shop=*][bbox=8.420,47.072,9.088,47.431] <xapi_service_url>/*[tourism=*][bbox=8.420,47.072,9.088,47.431] <xapi_service_url>/node[railway=station][bbox=8.420,47.072,9.088,47.431] <xapi_service_url>/relation[type=restriction][bbox=8.420,47.072,9.088,47.431]