Transit
App · 14 actions
Find nearby stops, routes, real-time departures, service alerts and trip plans with Transit.
Actions
| Action | What it does |
|---|---|
| Estimate trip duration | Estimate trip duration. |
| Find nearby routes | Find nearby routes. |
| Find nearby stops | Find nearby stops. |
| Get network update | Get network update. |
| Get route | Get route. |
| Get stop | Get stop. |
| Get stop departures | Get stop departures. |
| Get trip | Get trip. |
| List network routes | List network routes. |
| List network stops | List network stops. |
| List networks | List networks. |
| List service alerts | List service alerts. |
| Plan trip | Plan trip. |
| Search stops | Search stops. |
Estimate trip duration
Estimate trip duration.
Inputs
- From lat
from_latnumber - From lat.
- From lon
from_lonnumber - From lon.
- From global stop ID
from_global_stop_idtext - From global stop id.
- To lat
to_latnumber - To lat.
- To lon
to_lonnumber - To lon.
- To global stop ID
to_global_stop_idtext - To global stop id.
- Mode
modetext - Mode.One of:
transit,microtransit. - Secondary mode
secondary_modetext - Secondary mode.One of:
microtransit. - Leave time
leave_timenumber - Leave time.
- Arrival time
arrival_timenumber - Arrival time.
- Accessibility need
accessibility_needtext - Accessibility need.One of:
none,strict,prioritize_step_free(Prioritize step free). - Walk reluctance
walk_reluctancenumber - Walk reluctance.
- Max distance between location and stop
max_distance_between_location_and_stopnumber - Max distance between location and stop.
Outputs
dataobject- The response from Transit.
Example output
{
"data": {
"duration": 1,
"type": "example"
}
}Find nearby routes
Find nearby routes.
Inputs
- Lat
latnumberRequired - Lat.
- Lon
lonnumberRequired - Lon.
- Max distance
max_distancenumber - Max distance.At most 1500.
- Locale
localetext - Locale.
- Should update realtime
should_update_realtimetrue/false - Should update realtime.
- Merge platform stops
merge_platform_stopstrue/false - Merge platform stops.
- Max num departures
max_num_departuresnumber - Max num departures.From 1 to 10.
- Time
timedate and time - Time.
- Include stops and shapes
include_stops_and_shapestrue/false - Include stops and shapes.
- Stop detailed
stop_detailedtrue/false - Stop detailed.
- Include inactive
include_inactivetrue/false - Include inactive.
Outputs
dataobject- The response from Transit.
Example output
{
"data": {
"nearby_routes": [
{
"alerts": [
{}
],
"compact_display_short_name": {},
"fares": [
{}
],
"global_route_id": "example",
"is_active": true,
"merged_itineraries": [
{}
],
"mode_key": "example",
"mode_name": "example",
"real_time_route_id": "example",
"route_color": "example",
"route_display_short_name": {},
"route_long_name": "example",
"route_network_id": "example",
"route_network_name": "example",
"route_short_name": "example",
"route_text_color": "example",
"route_timezone": "example",
"route_type": 1,
"sorting_key": "example",
"tts_long_name": "example",
"tts_short_name": "example",
"vehicle": {}
}
]
}
}Find nearby stops
Find nearby stops.
Inputs
- Lat
latnumberRequired - Lat.
- Lon
lonnumberRequired - Lon.
- Max distance
max_distancenumber - Max distance.At most 1500.
- Stop filter
stop_filtertext - Stop filter.One of:
Routable,EntrancesAndStopsOutsideStations,Entrances,Any. - Pickup dropoff filter
pickup_dropoff_filtertext - Pickup dropoff filter.One of:
PickupAllowedOnly,DropoffAllowedOnly,Everything. - Stop detailed
stop_detailedtrue/false - Stop detailed.
- Include beta feeds
include_beta_feedstrue/false - Include beta feeds.
- Locale
localetext - Locale.
Outputs
dataobject- The response from Transit.
Example output
{
"data": {
"stops": [
{
"city_name": "example",
"distance": 1,
"global_stop_id": "example",
"location_type": 1,
"parent_station": {},
"raw_stop_id": "example",
"route_type": 1,
"rt_stop_id": "example",
"stop_code": "example",
"stop_lat": 1,
"stop_lon": 1,
"stop_name": "example",
"wheelchair_boarding": 0
}
]
}
}Get network update
Get network update.
Inputs
- Network
network_idtext - Network id.
- Lat
latnumber - Lat.
- Lon
lonnumber - Lon.
Outputs
dataobject- The response from Transit.
Example output
{
"data": {
"time": 1
}
}Get route
Get route.
Inputs
- Global route ID
global_route_idtextRequired - Global route id.
- Locale
localetext - Locale.
- Include next departure
include_next_departuretrue/false - Include next departure.
- Stop detailed
stop_detailedtrue/false - Stop detailed.
Outputs
dataobject- The response from Transit.
Example output
{
"data": {
"itineraries": [
{
"canonical_itinerary": true,
"detour": {},
"direction_headsign": "example",
"direction_id": 1,
"headsign": "example",
"is_active": true,
"merged_headsign": "example",
"next_departure": {},
"shape": "example",
"stops": [
{}
]
}
],
"route": {
"alerts": [
{}
],
"compact_display_short_name": {
"boxed_text": "example",
"elements": [
"example"
],
"route_name_redundancy": true
},
"fares": [
{}
],
"global_route_id": "example",
"global_stop_id": "example",
"mode_key": "example",
"mode_name": "example",
"real_time_route_id": "example",
"route_color": "example",
"route_display_short_name": {
"boxed_text": "example",
"elements": [
"example"
],
"route_name_redundancy": true
},
"route_image": "example",
"route_long_name": "example",
"route_network_id": "example",
"route_network_name": "example",
"route_short_name": "example",
"route_text_color": "example",
"route_timezone": "example",
"route_type": 1,
"sorting_key": "example",
"tts_long_name": "example",
"tts_short_name": "example",
"vehicle": {
"image": "example",
"name": "example",
"name_inflection": "example"
}
}
}
}Get stop
Get stop.
Inputs
- Global stop ID
global_stop_idtextRequired - Global stop id.
- Locale
localetext - Locale.
Outputs
dataobject- The response from Transit.
Example output
{
"data": {
"stop": {
"city_name": "example",
"distance": 1,
"global_stop_id": "example",
"location_type": 1,
"network_id": "example",
"network_name": "example",
"parent_station": {
"city_name": "example",
"global_stop_id": "example",
"location_type": 1,
"raw_stop_id": "example",
"rt_stop_id": "example",
"station_code": "example",
"station_name": "example"
},
"raw_stop_id": "example",
"route_type": 1,
"rt_stop_id": "example",
"stop_code": "example",
"stop_lat": 1,
"stop_lon": 1,
"stop_name": "example",
"stop_timezone": "example",
"tts_stop_name": "example",
"wheelchair_boarding": 0
}
}
}Get stop departures
Get stop departures.
Inputs
- Global stop IDs
global_stop_idslistRequired - Global stop ids.
- Time
timenumber - Time.
- Remove cancelled
remove_cancelledtrue/false - Remove cancelled.
- Locale
localetext - Locale.
- Should update realtime
should_update_realtimetrue/false - Should update realtime.
- Merge platform stops
merge_platform_stopstrue/false - Merge platform stops.
- Max num departures
max_num_departuresnumber - Max num departures.From 1 to 10.
- Include stops and shapes
include_stops_and_shapestrue/false - Include stops and shapes.
- Stop detailed
stop_detailedtrue/false - Stop detailed.
- Exclude terminal arrivals
exclude_terminal_arrivalstrue/false - Exclude terminal arrivals.
Outputs
dataobject- The response from Transit.
Example output
{
"data": {
"route_departures": [
{
"alerts": [
{}
],
"compact_display_short_name": {},
"fares": [
{}
],
"global_route_id": "example",
"global_stop_id": "example",
"merged_itineraries": [
{}
],
"mode_key": "example",
"mode_name": "example",
"real_time_route_id": "example",
"route_color": "example",
"route_display_short_name": {},
"route_long_name": "example",
"route_network_id": "example",
"route_network_name": "example",
"route_short_name": "example",
"route_text_color": "example",
"route_timezone": "example",
"route_type": 1,
"sorting_key": "example",
"tts_long_name": "example",
"tts_short_name": "example",
"vehicle": {}
}
]
}
}Get trip
Get trip.
Inputs
- Trip search key
trip_search_keytextRequired - Trip search key.
- Include continuation
include_continuationtrue/false - Include continuation.
- Should update realtime
should_update_realtimetrue/false - Should update realtime.
- Locale
localetext - Locale.
Outputs
dataobject- The response from Transit.
Example output
{
"data": {
"continuation_trip_search_key": "example",
"route": {
"alerts": [
{}
],
"compact_display_short_name": {
"boxed_text": "example",
"elements": [
"example"
],
"route_name_redundancy": true
},
"fares": [
{}
],
"global_route_id": "example",
"global_stop_id": "example",
"mode_key": "example",
"mode_name": "example",
"real_time_route_id": "example",
"route_color": "example",
"route_display_short_name": {
"boxed_text": "example",
"elements": [
"example"
],
"route_name_redundancy": true
},
"route_image": "example",
"route_long_name": "example",
"route_network_id": "example",
"route_network_name": "example",
"route_short_name": "example",
"route_text_color": "example",
"route_timezone": "example",
"route_type": 1,
"sorting_key": "example",
"tts_long_name": "example",
"tts_short_name": "example",
"vehicle": {
"image": "example",
"name": "example",
"name_inflection": "example"
}
},
"rt_trip_id": "example",
"schedule_items": [
{
"departure_time": 1,
"is_cancelled": true,
"is_real_time": true,
"scheduled_departure_time": 1,
"stop": {}
}
]
}
}List network routes
List network routes.
Inputs
- Network IDs
network_idslist - Network ids.
- Lat
latnumber - Lat.
- Lon
lonnumber - Lon.
- Locale
localetext - Locale.
- Include itineraries
include_itinerariestrue/false - Include itineraries.
- Stop detailed
stop_detailedtrue/false - Stop detailed.
Outputs
dataobject- The response from Transit.
Example output
{
"data": {
"routes": [
{
"alerts": [
{}
],
"compact_display_short_name": {},
"fares": [
{}
],
"global_route_id": "example",
"global_stop_id": "example",
"mode_key": "example",
"mode_name": "example",
"real_time_route_id": "example",
"route_color": "example",
"route_display_short_name": {},
"route_image": "example",
"route_long_name": "example",
"route_network_id": "example",
"route_network_name": "example",
"route_short_name": "example",
"route_text_color": "example",
"route_timezone": "example",
"route_type": 1,
"sorting_key": "example",
"tts_long_name": "example",
"tts_short_name": "example",
"vehicle": {}
}
]
}
}List network stops
List network stops.
Inputs
- Network
network_idtext - Network id.
- Lat
latnumber - Lat.
- Lon
lonnumber - Lon.
- Stop detailed
stop_detailedtrue/false - Stop detailed.
- Locale
localetext - Locale.
Outputs
dataobject- The response from Transit.
Example output
{
"data": {
"stops": [
{
"city_name": "example",
"distance": 1,
"global_stop_id": "example",
"location_type": 1,
"parent_station": {},
"raw_stop_id": "example",
"route_type": 1,
"rt_stop_id": "example",
"stop_code": "example",
"stop_lat": 1,
"stop_lon": 1,
"stop_name": "example",
"wheelchair_boarding": 0
}
]
}
}List networks
List networks.
Inputs
- Lat
latnumber - Lat.
- Lon
lonnumber - Lon.
- Country code
country_codetext - Country code.
- Include all networks
include_all_networkstrue/false - Include all networks.
- Locale
localetext - Locale.
- Include network geometry
include_network_geometrytrue/false - Include network geometry.
- Include modes
include_modestrue/false - Include modes.
- Include sharing systems
include_sharing_systemstrue/false - Include sharing systems.
Outputs
dataobject- The response from Transit.
Example output
{
"data": {
"networks": [
{
"modes": [
{}
],
"network_enabled_by_default": true,
"network_geometry": {},
"network_geometry_center": {},
"network_id": "example",
"network_in_beta": true,
"network_in_preview": true,
"network_location": "example",
"network_name": "example",
"network_type": "example"
}
]
}
}List service alerts
List service alerts.
Inputs
- Network IDs
network_idslist - Network ids.
- Lat
latnumber - Lat.
- Lon
lonnumber - Lon.
- Show active alerts only
show_active_alerts_onlytrue/false - Show active alerts only.
- Locale
localetext - Locale.
Outputs
dataobject- The response from Transit.
Example output
{
"data": {
"alerts": [
{
"active_periods": [
{}
],
"cause": "UNKNOWN_CAUSE",
"created_at": 1,
"description": "example",
"effect": "NO_SERVICE",
"informed_entities": [
{}
],
"severity": "Unknown",
"title": "example"
}
]
}
}Plan trip
Plan trip.
Inputs
- From lat
from_latnumber - From lat.
- From lon
from_lonnumber - From lon.
- From global stop ID
from_global_stop_idtext - From global stop id.
- To lat
to_latnumber - To lat.
- To lon
to_lonnumber - To lon.
- To global stop ID
to_global_stop_idtext - To global stop id.
- Mode
modetext - Mode.One of:
transit,microtransit,personal_bike(Personal bike),walk,shared_mobility(Shared mobility). - Secondary mode
secondary_modetext - Secondary mode.One of:
microtransit,personal_bike(Personal bike),walk,shared_mobility(Shared mobility). - Sharing system type
sharing_system_typetext - Sharing system type.One of:
docked_bikeshare(Docked bikeshare),dockless_bikeshare(Dockless bikeshare),scooters. - Leave time
leave_timenumber - Leave time.
- Arrival time
arrival_timenumber - Arrival time.
- Accessibility need
accessibility_needtext - Accessibility need.One of:
none,strict,prioritize_step_free(Prioritize step free). - Walk reluctance
walk_reluctancenumber - Walk reluctance.
- Walk speed
walk_speednumber - Walk speed.From 0.5 to 5.
- Should include directions
should_include_directionstrue/false - Should include directions.
- Should include pathways
should_include_pathwaystrue/false - Should include pathways.
- Should include safety
should_include_safetytrue/false - Should include safety.
- Should use walk path duration
should_use_walk_path_durationtrue/false - Should use walk path duration.
- Max distance between location and stop
max_distance_between_location_and_stopnumber - Max distance between location and stop.
- Should update realtime
should_update_realtimetrue/false - Should update realtime.
- Consider downtimes
consider_downtimestrue/false - Consider downtimes.
- Avoid routes
avoid_routestext - Avoid routes.
- Avoid stops
avoid_stopstext - Avoid stops.
- Allowed modes
allowed_modestext - Allowed modes.
- Excluded modes
excluded_modestext - Excluded modes.
- Allowed networks
allowed_networkstext - Allowed networks.
- Enabled networks
enabled_networkstext - Enabled networks.
- Disabled networks
disabled_networkstext - Disabled networks.
- Enable network previews
enable_network_previewstrue/false - Enable network previews.
- Num result
num_resultnumber - Num result.
- Disable walk on multimodal fallback
disable_walk_on_multimodal_fallbacktrue/false - Disable walk on multimodal fallback.
- Max num departures
max_num_departuresnumber - Max num departures.From 1 to 10.
- Max num legs
max_num_legsnumber - Max num legs.From 1 to 6.
- Next departures window
next_departures_windownumber - Next departures window.
- Walk fallback
walk_fallbacktrue/false - Walk fallback.
Outputs
dataobject- The response from Transit.
Example output
{
"data": {
"results": [
{
"accessibility": "WheelchairStrict",
"duration": 1,
"end_time": 1,
"fare": {},
"legs": [
{}
],
"network_previews": [
{}
],
"start_time": 1
}
]
}
}Search stops
Search stops.
Inputs
- Lat
latnumberRequired - Lat.
- Lon
lonnumberRequired - Lon.
- Query
querytextRequired - Query.
- Pickup dropoff filter
pickup_dropoff_filtertext - Pickup dropoff filter.One of:
PickupAllowedOnly,DropoffAllowedOnly,Everything. - Max num results
max_num_resultsnumber - Max num results.From 1 to 50.
- Max distance
max_distancenumber - Max distance.At least 0.
- Merge similar stops
merge_similar_stopstrue/false - Merge similar stops.
- Locale
localetext - Locale.
Outputs
dataobject- The response from Transit.
Example output
{
"data": {
"results": [
{
"distance": 1,
"global_stop_id": "example",
"location_type": "example",
"match_strength": 1,
"route_type": "example",
"stop_lat": 1,
"stop_lon": 1,
"stop_name": "example"
}
]
}
}