data:swiss-transport

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
data:swiss-transport [2012/03/20 13:03] lolegdata:swiss-transport [Unknown date] (current) – external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-====== Swiss public transport API ======+====== Transport API ======
  
-=== Introduction === +See details here: [[project:transport_api|Transport API]].
- +
-The Transport API allows interested developers to build their own applications using public timetable data, whether they're on the web, the desktop or mobile devicesFind out more about how you can start exploring the timetable data playground or just browse the API Documentation. +
- +
-API Documentation +
- +
-The Transport API builds on REST style resources which respond in JSON. Individual resources are detailed below. +
- +
-/stations /connections /stationboard +
- +
-Returns the matching locations for the given parameters. +
- +
-The locations in the response are scored to determine which is the most exact location. This method can return a refine response, what means that the request has to be redone. +
- +
-=== Resource URL === +
- +
-<code> +
-http://transport.opendata.ch/v1/locations +
-</code> +
- +
-=== Example Request === +
-<code> +
-GET http://transport.opendata.ch/v1/locations?query=Basel +
-</code> +
- +
-=== Example response === +
-<code> +
-{ +
-"stations":+
-+
-"coordinate":+
-"type": "WGS84", "x": "8540192", "y": "47378177" +
-}, +
-"id": "008503000", "name": "Zuerich", "score": "100" +
-}, { +
-</code>+
  • data/swiss-transport.1332244999.txt.gz
  • Last modified: 2012/03/20 00:00
  • (external edit)