https://thames-clippers-timetables-api.herokuapp.com/graphql
Thames Clippers timetable data in a GraphQL API.
This GraphQL API is not itself an official TFL API - the source data is though, from TFL's open data API.
- Install GraphiQL
- Open GraphiQL
- Set the GraphQL Endpoint in GraphiQL to be: https://thames-clippers-timetables-api.herokuapp.com/graphql
- Try out some queries. GraphiQL has automatic documentation explaining how to structure your queries
Here is an example query:
{
routing(from: WANDSWORTH_RIVERSIDE_QUARTER_PIER, to: BLACKFRIARS_PIER) {
from
to
sailings {
departureTime
arrivalTime
}
}
}
To retrieve the source timetable data from TFL you need to:
- Register for a TFL Application ID and Key, if you do not already have one
- Set the application ID and Key as the following two environment variables:
TFL_APP_ID
TFL_APP_KEY
bundle exec rails server
bundle exec rspec
CircleCI is the continuous integration build server.
The app deploys to Heroku, using Heroku's automatic GitHub deploys