-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Tezza edited this page Jan 30, 2017
·
11 revisions
Welcome to the TfL-API wiki!
#API Endpoints
- Current API Version: v1
- Current API Host: api.tfl.lu
Current BaseURI: https://api.tfl.lu/v1
| Endpoint | Description / Example |
|---|---|
/BikePoint |
Gets all bike point locations https://api.tfl.lu/v1/BikePoint |
/BikePoint/{id} |
Gets the bike point with the given id. https://api.tfl.lu/v1/BikePoint/velok:29 |
/BikePoint/box/{swLon}/{swLat}/{neLon}/{neLat} |
Gets a list of bike points contained within a long/lat bounding box. https://api.tfl.lu/v1/BikePoint/box/6.10/49.5/6.11/49.55 |
/BikePoint/around/{lon}/{lat}/{radius} |
Gets the bike points that lie within the locus defined by the lon/lat of its centre and a radius in metres. https://api.tfl.lu/v1/BikePoint/around/6.113204/49.61028/100000 |
/BikePoint/Search/{query} |
Search for bike stations by their name, a bike points name contains location information https://api.tfl.lu/v1/BikePoint/Search/Esch |
| Endpoint | Description / Example |
|---|---|
/Weather |
Gets the current weather situation (same format as openweathermap) https://api.tfl.lu/v1/Weather |
| Endpoint | Description / Example |
|---|---|
/Journey/{from}/to/{to} |
Perform a Journey Planner search from the parameters specified in simple types https://api.tfl.lu/v1/Journey/49.59744,6.14077/to/49.542,6.19942 |
Documentation of the /Journey endpoint: http://dev.opentripplanner.org/apidoc/1.0.0/json_Response.html
| Endpoint | Description |
|---|---|
/Occupancy/CarPark |
Gets the occupancy for all car parks that have occupancy data. https://api.tfl.lu/v1/Occupancy/CarPark |
/Occupancy/CarPark/{id} |
Gets the occupancy for a car park with a given id. https://api.tfl.lu/v1/Occupancy/CarPark/vdl:22 |
| Endpoint | Description |
|---|---|
/StopPoint |
Gets a list of all StopPoints. https://api.tfl.lu/v1/StopPoint |
/StopPoint/{id} |
Gets the StopPoint of the given id. https://api.tfl.lu/v1/StopPoint/200901011 |
/StopPoint/Departures/{id} |
Gets departures of StopPoint of the given id. https://api.tfl.lu/v1/StopPoint/Departures/200901011 |
/StopPoint/around/{lon}/{lat}/{radius} |
Gets the stop points that lie within the locus defined by the lon/lat of its centre and a radius in metres. https://api.tfl.lu/v1/StopPoint/around/6.133646/49.60067/100 |
/StopPoint/box/{swLon}/{swLat}/{neLon}/{neLat} |
Gets a list of stop points contained within a long/lat bounding box. https://api.tfl.lu/v1/StopPoint/box/6.10/49.5/6.11/49.55 |
/StopPoint/Search/{query} |
Search StopPoints by their common name, zip, city, street name, address,... https://api.tfl.lu/v1/StopPoint/search/Schoenach |