Overview
Public Transport API helps you build public transport routes on the map.
With a single request, you can get several route options on different types of public transport and choose the most suitable one considering the total route duration, the number of transfers, the length of the pedestrian route part, and other parameters.
Main features
Transportation types
- metro
- bus
- tram
- trolleybus
- shuttle taxi
- suburban train
- light metro
- monorail
- funicular
- river transport
- cable car
- light rail
- underground tram
Route building parameters
You can specify the following parameters when building routes:
- Start travel time (departure time).
- Coordinates of the starting and ending points.
- Intermediate route points.
- Transportation type.
- Consideration of the public transport schedule.
- Maximum number of alternative route options in the response.
- Minimum number of direct routes without transfers in the response.
For each route, you can obtain:
- Multiple options for traveling the route.
- Full geometry of all route segments in the WKT (Well-Known Text) format.
- List of public transport routes and stops.
- Public transport schedule and arrival times at each stop.
- Total route length, length of the pedestrian part, and travel time.
- Length of each route segment, travel time, and waiting time.
- Number of transfers and a list of transfer stops.
For more information about parameters, see the API Reference.
Tariffs
- The service fee is calculated based on the number of requests per month. Building alternative route options is not charged additionally.
- To find out the current prices for services, contact the manager.
Deployment options
-
Cloud-based: all Public Transport API methods are available through public 2GIS endpoints.
For building routes through mobile SDK, special Public Transport API methods are used. Access to these methods is provided when you obtain an access key for mobile SDK.
-
On-Premise: all Public Transport API methods are available when the 2GIS API platform is installed in a private network. For more information, see the API platform for server.
What's next?
- Getting started.
- Examples of using Public Transport API.
- API Reference.