XAPI

Aus Geoinformation HSR
Wechseln zu: Navigation, Suche

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):

XAPI Projekte

  1. Projekt 'XAPI - The original': Mumps und GT.M (no comment...!?!)
  2. Projekt 'JXAPI': Source - Reimplementation als Java Servlet mit PostgreSQL by Ian Dees => XAPI-Servlet
  3. Projekt 'osm-spline-xapi' - Reimplementation in serverside JavaScript mit PostGIS.
  4. Projekt XAPI-to-Map

Dokumentation

Beispiele

Hier konkrete, laufende XAPI-Beispiele:

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]