The TripGo API allows you to plan door-to-door trips using a large variety of public and private transport. It integrates real-time information and, for selected providers, allows users to book and pay for transport.
Getting an API key
Once you have an API key, make sure to send it along with every request as the
Before you dive in
FastGo, our blog post and sample app showing one way of using the API.
Also, keep in mind that this API is:
powered by multiple servers, not all of which cover every region. You have to use the correct host names for the region that you query. You get those host names by first querying
regions.jsonand looking up the
urlsfor that region. You should only cache this information short term as those URLs can change without notice.
optimised to return a large number of trip results while maintaining a small package sizes. This has a number of complications. Notably, to get a trip's segments you need to combine the segment references with the segment templates.
The specifications are available in OpenAPI (formerly Swagger) format. Pick your favorite UI to browse the specs:
Once you dig into the API, you'll likely soon want to know more about some of its details.
- Single-modal vs. multi-modal routing
- Trips, groups, frequencies and templates
- Placeholders in segment templates
For a light-weight alternative to using our API, you can also deep-link into the TripGo app.
Opens the routing results for the specified destination, and optionally the start and time:
flng: Start coordinates. If not specified, the user's current location is used.
tlng: End coordinates. Required, unless
tname: Destination as a search string (supports what3words). Required, unless
0for leaving ASAP,
1for leaving after
2for arriving by
time: Query time in seconds since 1970. Required, unless
typeis set to
Opens the search screen with the destination and arrival time filled in.
lng: Coordinate where to meet. Required, unless
name: Destination as a search string (supports what3words). Required, unless
time: Arrival time in seconds since 1970. Required.
- iOS: tripgo:///meet?lat=-33.94501&lng=151.25807&at=1385535734
- Web: http://tripgo.me/meet?lat=-33.94501&lng=151.25807&at=1385535734
Opens the departures timetable for a given stop.
$stop use region codes and stop codes as defined in our API.
Transport Provider Integration
For integrating new transport services into the TripGo app, as well as the TripGo API, please have a look at our Transport Providers website and get in touch with our team.