Transit

App · 14 actions

Find nearby stops, routes, real-time departures, service alerts and trip plans with Transit.

Actions

ActionWhat it does
Estimate trip durationEstimate trip duration.
Find nearby routesFind nearby routes.
Find nearby stopsFind nearby stops.
Get network updateGet network update.
Get routeGet route.
Get stopGet stop.
Get stop departuresGet stop departures.
Get tripGet trip.
List network routesList network routes.
List network stopsList network stops.
List networksList networks.
List service alertsList service alerts.
Plan tripPlan trip.
Search stopsSearch stops.

Estimate trip duration

Estimate trip duration.

Inputs

From latfrom_latnumber
From lat.
From lonfrom_lonnumber
From lon.
From global stop IDfrom_global_stop_idtext
From global stop id.
To latto_latnumber
To lat.
To lonto_lonnumber
To lon.
To global stop IDto_global_stop_idtext
To global stop id.
Modemodetext
Mode.One of: transit, microtransit.
Secondary modesecondary_modetext
Secondary mode.One of: microtransit.
Leave timeleave_timenumber
Leave time.
Arrival timearrival_timenumber
Arrival time.
Accessibility needaccessibility_needtext
Accessibility need.One of: none, strict, prioritize_step_free (Prioritize step free).
Walk reluctancewalk_reluctancenumber
Walk reluctance.
Max distance between location and stopmax_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

LatlatnumberRequired
Lat.
LonlonnumberRequired
Lon.
Max distancemax_distancenumber
Max distance.At most 1500.
Localelocaletext
Locale.
Should update realtimeshould_update_realtimetrue/false
Should update realtime.
Merge platform stopsmerge_platform_stopstrue/false
Merge platform stops.
Max num departuresmax_num_departuresnumber
Max num departures.From 1 to 10.
Timetimedate and time
Time.
Include stops and shapesinclude_stops_and_shapestrue/false
Include stops and shapes.
Stop detailedstop_detailedtrue/false
Stop detailed.
Include inactiveinclude_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

LatlatnumberRequired
Lat.
LonlonnumberRequired
Lon.
Max distancemax_distancenumber
Max distance.At most 1500.
Stop filterstop_filtertext
Stop filter.One of: Routable, EntrancesAndStopsOutsideStations, Entrances, Any.
Pickup dropoff filterpickup_dropoff_filtertext
Pickup dropoff filter.One of: PickupAllowedOnly, DropoffAllowedOnly, Everything.
Stop detailedstop_detailedtrue/false
Stop detailed.
Include beta feedsinclude_beta_feedstrue/false
Include beta feeds.
Localelocaletext
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

Networknetwork_idtext
Network id.
Latlatnumber
Lat.
Lonlonnumber
Lon.

Outputs

dataobject
The response from Transit.
Example output
{
  "data": {
    "time": 1
  }
}

Get route

Get route.

Inputs

Global route IDglobal_route_idtextRequired
Global route id.
Localelocaletext
Locale.
Include next departureinclude_next_departuretrue/false
Include next departure.
Stop detailedstop_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 IDglobal_stop_idtextRequired
Global stop id.
Localelocaletext
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 IDsglobal_stop_idslistRequired
Global stop ids.
Timetimenumber
Time.
Remove cancelledremove_cancelledtrue/false
Remove cancelled.
Localelocaletext
Locale.
Should update realtimeshould_update_realtimetrue/false
Should update realtime.
Merge platform stopsmerge_platform_stopstrue/false
Merge platform stops.
Max num departuresmax_num_departuresnumber
Max num departures.From 1 to 10.
Include stops and shapesinclude_stops_and_shapestrue/false
Include stops and shapes.
Stop detailedstop_detailedtrue/false
Stop detailed.
Exclude terminal arrivalsexclude_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 keytrip_search_keytextRequired
Trip search key.
Include continuationinclude_continuationtrue/false
Include continuation.
Should update realtimeshould_update_realtimetrue/false
Should update realtime.
Localelocaletext
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 IDsnetwork_idslist
Network ids.
Latlatnumber
Lat.
Lonlonnumber
Lon.
Localelocaletext
Locale.
Include itinerariesinclude_itinerariestrue/false
Include itineraries.
Stop detailedstop_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

Networknetwork_idtext
Network id.
Latlatnumber
Lat.
Lonlonnumber
Lon.
Stop detailedstop_detailedtrue/false
Stop detailed.
Localelocaletext
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

Latlatnumber
Lat.
Lonlonnumber
Lon.
Country codecountry_codetext
Country code.
Include all networksinclude_all_networkstrue/false
Include all networks.
Localelocaletext
Locale.
Include network geometryinclude_network_geometrytrue/false
Include network geometry.
Include modesinclude_modestrue/false
Include modes.
Include sharing systemsinclude_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 IDsnetwork_idslist
Network ids.
Latlatnumber
Lat.
Lonlonnumber
Lon.
Show active alerts onlyshow_active_alerts_onlytrue/false
Show active alerts only.
Localelocaletext
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 latfrom_latnumber
From lat.
From lonfrom_lonnumber
From lon.
From global stop IDfrom_global_stop_idtext
From global stop id.
To latto_latnumber
To lat.
To lonto_lonnumber
To lon.
To global stop IDto_global_stop_idtext
To global stop id.
Modemodetext
Mode.One of: transit, microtransit, personal_bike (Personal bike), walk, shared_mobility (Shared mobility).
Secondary modesecondary_modetext
Secondary mode.One of: microtransit, personal_bike (Personal bike), walk, shared_mobility (Shared mobility).
Sharing system typesharing_system_typetext
Sharing system type.One of: docked_bikeshare (Docked bikeshare), dockless_bikeshare (Dockless bikeshare), scooters.
Leave timeleave_timenumber
Leave time.
Arrival timearrival_timenumber
Arrival time.
Accessibility needaccessibility_needtext
Accessibility need.One of: none, strict, prioritize_step_free (Prioritize step free).
Walk reluctancewalk_reluctancenumber
Walk reluctance.
Walk speedwalk_speednumber
Walk speed.From 0.5 to 5.
Should include directionsshould_include_directionstrue/false
Should include directions.
Should include pathwaysshould_include_pathwaystrue/false
Should include pathways.
Should include safetyshould_include_safetytrue/false
Should include safety.
Should use walk path durationshould_use_walk_path_durationtrue/false
Should use walk path duration.
Max distance between location and stopmax_distance_between_location_and_stopnumber
Max distance between location and stop.
Should update realtimeshould_update_realtimetrue/false
Should update realtime.
Consider downtimesconsider_downtimestrue/false
Consider downtimes.
Avoid routesavoid_routestext
Avoid routes.
Avoid stopsavoid_stopstext
Avoid stops.
Allowed modesallowed_modestext
Allowed modes.
Excluded modesexcluded_modestext
Excluded modes.
Allowed networksallowed_networkstext
Allowed networks.
Enabled networksenabled_networkstext
Enabled networks.
Disabled networksdisabled_networkstext
Disabled networks.
Enable network previewsenable_network_previewstrue/false
Enable network previews.
Num resultnum_resultnumber
Num result.
Disable walk on multimodal fallbackdisable_walk_on_multimodal_fallbacktrue/false
Disable walk on multimodal fallback.
Max num departuresmax_num_departuresnumber
Max num departures.From 1 to 10.
Max num legsmax_num_legsnumber
Max num legs.From 1 to 6.
Next departures windownext_departures_windownumber
Next departures window.
Walk fallbackwalk_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

LatlatnumberRequired
Lat.
LonlonnumberRequired
Lon.
QueryquerytextRequired
Query.
Pickup dropoff filterpickup_dropoff_filtertext
Pickup dropoff filter.One of: PickupAllowedOnly, DropoffAllowedOnly, Everything.
Max num resultsmax_num_resultsnumber
Max num results.From 1 to 50.
Max distancemax_distancenumber
Max distance.At least 0.
Merge similar stopsmerge_similar_stopstrue/false
Merge similar stops.
Localelocaletext
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"
      }
    ]
  }
}

On this page