Returns routes around a location
lat required | number <double> Example: lat=45.526168077787894 Latitude |
lon required | number <double> Example: lon=-73.59506067289408 Longitude |
max_distance | integer <= 1500 Default: 150 Example: max_distance=1500 Maximum radius of search from the request location (in meters) |
should_update_realtime | boolean Default: true Boolean telling the system if it should update real time or just return schedule information. |
Accept-Language | string Example: fr,en Names and other strings can translated into any of the supported languages of a feed. If not provided, the default language of the feed is selected. |
{- "routes": [
- {
- "compact_display_short_name": {
- "boxed_text": "",
- "elements": [
- null,
- "30",
- null
], - "route_name_redundancy": false
}, - "global_route_id": "STM:884",
- "itineraries": [
- {
- "branch_code": "",
- "closest_stop": {
- "global_stop_id": "STM:93806",
- "location_type": 0,
- "parent_station_global_stop_id": null,
- "route_type": 3,
- "rt_stop_id": "54127",
- "stop_code": "54127",
- "stop_lat": 45.5561148059816,
- "stop_lon": -73.66728568969893,
- "stop_name": "Station Henri-Bourassa",
- "wheelchair_boarding": 1
}, - "direction_headsign": "Nord",
- "direction_id": 0,
- "headsign": "Nord",
- "merged_headsign": "Nord",
- "schedule_items": [ ]
}, - {
- "branch_code": "",
- "closest_stop": {
- "global_stop_id": "STM:93807",
- "location_type": 0,
- "parent_station_global_stop_id": null,
- "route_type": 3,
- "rt_stop_id": "53827",
- "stop_code": "53827",
- "stop_lat": 45.55619574481179,
- "stop_lon": -73.66700690039492,
- "stop_name": "Station Henri-Bourassa",
- "wheelchair_boarding": 1
}, - "direction_headsign": "Sud",
- "direction_id": 1,
- "headsign": "Sud",
- "merged_headsign": "Sud",
- "schedule_items": [
- {
- "departure_time": 1706734320,
- "is_cancelled": false,
- "is_real_time": true,
- "rt_trip_id": "270709132",
- "scheduled_departure_time": 1706734320,
- "trip_search_key": "STM:44434357:56:1:23",
- "wheelchair_accessible": 1
}, - {
- "departure_time": 1706735940,
- "is_cancelled": false,
- "is_real_time": false,
- "rt_trip_id": "270709587",
- "scheduled_departure_time": 1706735940,
- "trip_search_key": "STM:44434357:56:1:24",
- "wheelchair_accessible": 0
}, - {
- "departure_time": 1706737740,
- "is_cancelled": false,
- "is_real_time": false,
- "rt_trip_id": "270709414",
- "scheduled_departure_time": 1706737740,
- "trip_search_key": "STM:44434357:56:1:25",
- "wheelchair_accessible": 1
}
]
}
], - "mode_name": "Bus",
- "real_time_route_id": "30",
- "route_color": "009ee0",
- "route_display_short_name": {
- "boxed_text": "",
- "elements": [
- null,
- "30",
- null
], - "route_name_redundancy": false
}, - "route_long_name": "Saint-Denis / Saint-Hubert",
- "route_short_name": "30",
- "route_text_color": "ffffff",
- "route_type": 3,
- "sorting_key": "30",
- "tts_long_name": "Saint-Denis / Saint-Hubert",
- "tts_short_name": "30"
}, - {
- "compact_display_short_name": {
- "boxed_text": "",
- "elements": [
- null,
- "171",
- null
], - "route_name_redundancy": false
}, - "global_route_id": "STM:980",
- "itineraries": [
- {
- "branch_code": "",
- "closest_stop": {
- "global_stop_id": "STM:88368",
- "location_type": 0,
- "parent_station_global_stop_id": null,
- "route_type": 3,
- "rt_stop_id": "54127",
- "stop_code": "54127",
- "stop_lat": 45.5561148059816,
- "stop_lon": -73.66728568969893,
- "stop_name": "Station Henri-Bourassa",
- "wheelchair_boarding": 1
}, - "direction_headsign": "Est",
- "direction_id": 0,
- "headsign": "Est",
- "merged_headsign": "Est",
- "schedule_items": [ ]
}, - {
- "branch_code": "",
- "closest_stop": {
- "global_stop_id": "STM:88180",
- "location_type": 0,
- "parent_station_global_stop_id": null,
- "route_type": 3,
- "rt_stop_id": "54114",
- "stop_code": "54114",
- "stop_lat": 45.55550326815347,
- "stop_lon": -73.66742058774925,
- "stop_name": "Station Henri-Bourassa",
- "wheelchair_boarding": 1
}, - "direction_headsign": "Ouest",
- "direction_id": 1,
- "headsign": "Ouest",
- "merged_headsign": "Ouest",
- "schedule_items": [
- {
- "departure_time": 1706734020,
- "is_cancelled": false,
- "is_real_time": true,
- "rt_trip_id": "274099525",
- "scheduled_departure_time": 1706734020,
- "trip_search_key": "STM:44434357:312:1:16",
- "wheelchair_accessible": 0
}, - {
- "departure_time": 1706734920,
- "is_cancelled": false,
- "is_real_time": false,
- "rt_trip_id": "274099717",
- "scheduled_departure_time": 1706734920,
- "trip_search_key": "STM:44434357:312:1:17",
- "wheelchair_accessible": 1
}, - {
- "departure_time": 1706735820,
- "is_cancelled": false,
- "is_real_time": false,
- "rt_trip_id": "274099796",
- "scheduled_departure_time": 1706735820,
- "trip_search_key": "STM:44434357:312:1:18",
- "wheelchair_accessible": 1
}
]
}
], - "mode_name": "Bus",
- "real_time_route_id": "171",
- "route_color": "781b7d",
- "route_display_short_name": {
- "boxed_text": "",
- "elements": [
- null,
- "171",
- null
], - "route_name_redundancy": false
}, - "route_long_name": "Henri-Bourassa",
- "route_short_name": "171",
- "route_text_color": "ffffff",
- "route_type": 3,
- "sorting_key": "171",
- "tts_long_name": "Henri-Bourassa",
- "tts_short_name": "171"
}, - {
- "compact_display_short_name": {
- "boxed_text": "",
- "elements": [
- null,
- "164",
- null
], - "route_name_redundancy": false
}, - "global_route_id": "STM:975",
- "itineraries": [
- {
- "branch_code": "",
- "closest_stop": {
- "global_stop_id": "STM:102657",
- "location_type": 0,
- "parent_station_global_stop_id": null,
- "route_type": 3,
- "rt_stop_id": "54127",
- "stop_code": "54127",
- "stop_lat": 45.5561148059816,
- "stop_lon": -73.66728568969893,
- "stop_name": "Station Henri-Bourassa",
- "wheelchair_boarding": 1
}, - "direction_headsign": "Est",
- "direction_id": 0,
- "headsign": "Est",
- "merged_headsign": "Est",
- "schedule_items": [ ]
}, - {
- "branch_code": "",
- "closest_stop": {
- "global_stop_id": "STM:102658",
- "location_type": 0,
- "parent_station_global_stop_id": null,
- "route_type": 3,
- "rt_stop_id": "53793",
- "stop_code": "53793",
- "stop_lat": 45.55567413901721,
- "stop_lon": -73.6673486421224,
- "stop_name": "Station Henri-Bourassa",
- "wheelchair_boarding": 1
}, - "direction_headsign": "Ouest",
- "direction_id": 1,
- "headsign": "Ouest",
- "merged_headsign": "Ouest",
- "schedule_items": [
- {
- "departure_time": 1706734200,
- "is_cancelled": false,
- "is_real_time": true,
- "rt_trip_id": "270703982",
- "scheduled_departure_time": 1706734200,
- "trip_search_key": "STM:44434357:296:1:32",
- "wheelchair_accessible": 1
}, - {
- "departure_time": 1706734800,
- "is_cancelled": false,
- "is_real_time": true,
- "rt_trip_id": "270703998",
- "scheduled_departure_time": 1706734800,
- "trip_search_key": "STM:44434357:296:1:33",
- "wheelchair_accessible": 1
}, - {
- "departure_time": 1706735400,
- "is_cancelled": false,
- "is_real_time": false,
- "rt_trip_id": "270704077",
- "scheduled_departure_time": 1706735400,
- "trip_search_key": "STM:44434357:296:1:34",
- "wheelchair_accessible": 1
}
]
}
], - "mode_name": "Bus",
- "real_time_route_id": "164",
- "route_color": "009ee0",
- "route_display_short_name": {
- "boxed_text": "",
- "elements": [
- null,
- "164",
- null
], - "route_name_redundancy": false
}, - "route_long_name": "Dudemaine",
- "route_short_name": "164",
- "route_text_color": "ffffff",
- "route_type": 3,
- "sorting_key": "164",
- "tts_long_name": "Dudemaine",
- "tts_short_name": "164"
}, - {
- "compact_display_short_name": {
- "boxed_text": "",
- "elements": [
- null,
- "56",
- null
], - "route_name_redundancy": false
}, - "global_route_id": "STM:906",
- "itineraries": [
- {
- "branch_code": "",
- "closest_stop": {
- "global_stop_id": "STM:104628",
- "location_type": 0,
- "parent_station_global_stop_id": null,
- "route_type": 3,
- "rt_stop_id": "54127",
- "stop_code": "54127",
- "stop_lat": 45.5561148059816,
- "stop_lon": -73.66728568969893,
- "stop_name": "Station Henri-Bourassa",
- "wheelchair_boarding": 1
}, - "direction_headsign": "Nord",
- "direction_id": 0,
- "headsign": "Nord",
- "merged_headsign": "Nord",
- "schedule_items": [ ]
}, - {
- "branch_code": "",
- "closest_stop": {
- "global_stop_id": "STM:104604",
- "location_type": 0,
- "parent_station_global_stop_id": null,
- "route_type": 3,
- "rt_stop_id": "53827",
- "stop_code": "53827",
- "stop_lat": 45.55619574481179,
- "stop_lon": -73.66700690039492,
- "stop_name": "Station Henri-Bourassa",
- "wheelchair_boarding": 1
}, - "direction_headsign": "Sud",
- "direction_id": 1,
- "headsign": "Sud",
- "merged_headsign": "Sud",
- "schedule_items": [
- {
- "departure_time": 1706734860,
- "is_cancelled": false,
- "is_real_time": false,
- "rt_trip_id": "271171725",
- "scheduled_departure_time": 1706734860,
- "trip_search_key": "STM:44434357:122:1:32",
- "wheelchair_accessible": 0
}, - {
- "departure_time": 1706735460,
- "is_cancelled": false,
- "is_real_time": false,
- "rt_trip_id": "271171697",
- "scheduled_departure_time": 1706735460,
- "trip_search_key": "STM:44434357:122:1:33",
- "wheelchair_accessible": 1
}, - {
- "departure_time": 1706737020,
- "is_cancelled": false,
- "is_real_time": false,
- "rt_trip_id": "271171728",
- "scheduled_departure_time": 1706737020,
- "trip_search_key": "STM:44434357:122:1:34",
- "wheelchair_accessible": 0
}
]
}
], - "mode_name": "Bus",
- "real_time_route_id": "56",
- "route_color": "009ee0",
- "route_display_short_name": {
- "boxed_text": "",
- "elements": [
- null,
- "56",
- null
], - "route_name_redundancy": false
}, - "route_long_name": "Saint-Hubert",
- "route_short_name": "56",
- "route_text_color": "ffffff",
- "route_type": 3,
- "sorting_key": "56",
- "tts_long_name": "Saint-Hubert",
- "tts_short_name": "56"
}, - {
- "compact_display_short_name": {
- "boxed_text": "",
- "elements": [
- null,
- "49",
- null
], - "route_name_redundancy": false
}, - "global_route_id": "STM:900",
- "itineraries": [
- {
- "branch_code": "",
- "closest_stop": {
- "global_stop_id": "STM:91156",
- "location_type": 0,
- "parent_station_global_stop_id": null,
- "route_type": 3,
- "rt_stop_id": "60367",
- "stop_code": "60367",
- "stop_lat": 45.55584500988095,
- "stop_lon": -73.66721374407209,
- "stop_name": "Station Henri-Bourassa",
- "wheelchair_boarding": 1
}, - "direction_headsign": "Est",
- "direction_id": 0,
- "headsign": "Est",
- "merged_headsign": "Est",
- "schedule_items": [
- {
- "departure_time": 1706734020,
- "is_cancelled": false,
- "is_real_time": true,
- "rt_trip_id": "274252176",
- "scheduled_departure_time": 1706734020,
- "trip_search_key": "STM:44434357:103:1:41",
- "wheelchair_accessible": 0
}, - {
- "departure_time": 1706734500,
- "is_cancelled": false,
- "is_real_time": true,
- "rt_trip_id": "274252897",
- "scheduled_departure_time": 1706734500,
- "trip_search_key": "STM:44434357:103:1:42",
- "wheelchair_accessible": 0
}, - {
- "departure_time": 1706734920,
- "is_cancelled": false,
- "is_real_time": false,
- "rt_trip_id": "274251862",
- "scheduled_departure_time": 1706734920,
- "trip_search_key": "STM:44434357:103:1:43",
- "wheelchair_accessible": 1
}
]
}, - {
- "branch_code": "",
- "closest_stop": {
- "global_stop_id": "STM:91155",
- "location_type": 0,
- "parent_station_global_stop_id": null,
- "route_type": 3,
- "rt_stop_id": "54127",
- "stop_code": "54127",
- "stop_lat": 45.5561148059816,
- "stop_lon": -73.66728568969893,
- "stop_name": "Station Henri-Bourassa",
- "wheelchair_boarding": 1
}, - "direction_headsign": "Ouest",
- "direction_id": 1,
- "headsign": "Ouest",
- "merged_headsign": "Ouest",
- "schedule_items": [ ]
}
], - "mode_name": "Bus",
- "real_time_route_id": "49",
- "route_color": "781b7d",
- "route_display_short_name": {
- "boxed_text": "",
- "elements": [
- null,
- "49",
- null
], - "route_name_redundancy": false
}, - "route_long_name": "Maurice-Duplessis",
- "route_short_name": "49",
- "route_text_color": "ffffff",
- "route_type": 3,
- "sorting_key": "49",
- "tts_long_name": "Maurice-Duplessis",
- "tts_short_name": "49"
}, - {
- "compact_display_short_name": {
- "boxed_text": "",
- "elements": [
- null,
- "469",
- null
], - "route_name_redundancy": false
}, - "global_route_id": "STM:1082",
- "itineraries": [
- {
- "branch_code": "",
- "closest_stop": {
- "global_stop_id": "STM:99806",
- "location_type": 0,
- "parent_station_global_stop_id": null,
- "route_type": 3,
- "rt_stop_id": "53757",
- "stop_code": "53757",
- "stop_lat": 45.55646554091244,
- "stop_lon": -73.66690797515801,
- "stop_name": "Station Henri-Bourassa",
- "wheelchair_boarding": 1
}, - "direction_headsign": "Est",
- "direction_id": 0,
- "headsign": "Est",
- "merged_headsign": "Est",
- "schedule_items": [
- {
- "departure_time": 1706734200,
- "is_cancelled": false,
- "is_real_time": false,
- "rt_trip_id": "271169443",
- "scheduled_departure_time": 1706734200,
- "trip_search_key": "STM:44434357:540:1:22",
- "wheelchair_accessible": 0
}, - {
- "departure_time": 1706734860,
- "is_cancelled": false,
- "is_real_time": false,
- "rt_trip_id": "274099736",
- "scheduled_departure_time": 1706734860,
- "trip_search_key": "STM:44434357:540:1:23",
- "wheelchair_accessible": 1
}, - {
- "departure_time": 1706735580,
- "is_cancelled": false,
- "is_real_time": false,
- "rt_trip_id": "271171150",
- "scheduled_departure_time": 1706735580,
- "trip_search_key": "STM:44434357:540:1:24",
- "wheelchair_accessible": 1
}
]
}, - {
- "branch_code": "",
- "closest_stop": {
- "global_stop_id": "STM:99767",
- "location_type": 0,
- "parent_station_global_stop_id": null,
- "route_type": 3,
- "rt_stop_id": "54127",
- "stop_code": "54127",
- "stop_lat": 45.5561148059816,
- "stop_lon": -73.66728568969893,
- "stop_name": "Station Henri-Bourassa",
- "wheelchair_boarding": 1
}, - "direction_headsign": "Ouest",
- "direction_id": 1,
- "headsign": "Ouest",
- "merged_headsign": "Ouest",
- "schedule_items": [ ]
}
], - "mode_name": "Bus",
- "real_time_route_id": "469",
- "route_color": "009ee0",
- "route_display_short_name": {
- "boxed_text": "",
- "elements": [
- null,
- "469",
- null
], - "route_name_redundancy": false
}, - "route_long_name": "Express Henri-Bourassa",
- "route_short_name": "469",
- "route_text_color": "ffffff",
- "route_type": 3,
- "sorting_key": "469",
- "tts_long_name": "Express Henri-Bourassa",
- "tts_short_name": "469"
}, - {
- "compact_display_short_name": {
- "boxed_text": "",
- "elements": [
- null,
- "48",
- null
], - "route_name_redundancy": false
}, - "global_route_id": "STM:899",
- "itineraries": [
- {
- "branch_code": "",
- "closest_stop": {
- "global_stop_id": "STM:90473",
- "location_type": 0,
- "parent_station_global_stop_id": null,
- "route_type": 3,
- "rt_stop_id": "50313",
- "stop_code": "50313",
- "stop_lat": 45.55603386715141,
- "stop_lon": -73.66711481883517,
- "stop_name": "Station Henri-Bourassa",
- "wheelchair_boarding": 1
}, - "direction_headsign": "Est",
- "direction_id": 0,
- "headsign": "Est",
- "merged_headsign": "Est",
- "schedule_items": [
- {
- "departure_time": 1706734260,
- "is_cancelled": false,
- "is_real_time": false,
- "rt_trip_id": "271171388",
- "scheduled_departure_time": 1706734260,
- "trip_search_key": "STM:44434357:100:1:30",
- "wheelchair_accessible": 0
}, - {
- "departure_time": 1706734620,
- "is_cancelled": false,
- "is_real_time": true,
- "rt_trip_id": "271169753",
- "scheduled_departure_time": 1706734620,
- "trip_search_key": "STM:44434357:100:1:31",
- "wheelchair_accessible": 1
}, - {
- "departure_time": 1706735040,
- "is_cancelled": false,
- "is_real_time": false,
- "rt_trip_id": "271171088",
- "scheduled_departure_time": 1706735040,
- "trip_search_key": "STM:44434357:98:1:19",
- "wheelchair_accessible": 0
}
]
}, - {
- "branch_code": "",
- "closest_stop": {
- "global_stop_id": "STM:90472",
- "location_type": 0,
- "parent_station_global_stop_id": null,
- "route_type": 3,
- "rt_stop_id": "54127",
- "stop_code": "54127",
- "stop_lat": 45.5561148059816,
- "stop_lon": -73.66728568969893,
- "stop_name": "Station Henri-Bourassa",
- "wheelchair_boarding": 1
}, - "direction_headsign": "Ouest",
- "direction_id": 1,
- "headsign": "Ouest",
- "merged_headsign": "Ouest",
- "schedule_items": [ ]
}
], - "mode_name": "Bus",
- "real_time_route_id": "48",
- "route_color": "781b7d",
- "route_display_short_name": {
- "boxed_text": "",
- "elements": [
- null,
- "48",
- null
], - "route_name_redundancy": false
}, - "route_long_name": "Perras",
- "route_short_name": "48",
- "route_text_color": "ffffff",
- "route_type": 3,
- "sorting_key": "48",
- "tts_long_name": "Perras",
- "tts_short_name": "48"
}, - {
- "compact_display_short_name": {
- "boxed_text": "",
- "elements": [
- null,
- "69",
- null
], - "route_name_redundancy": false
}, - "global_route_id": "STM:915",
- "itineraries": [
- {
- "branch_code": "",
- "closest_stop": {
- "global_stop_id": "STM:98967",
- "location_type": 0,
- "parent_station_global_stop_id": null,
- "route_type": 3,
- "rt_stop_id": "50307",
- "stop_code": "50307",
- "stop_lat": 45.5561148059816,
- "stop_lon": -73.66748354017273,
- "stop_name": "Station Henri-Bourassa",
- "wheelchair_boarding": 1
}, - "direction_headsign": "Est",
- "direction_id": 0,
- "headsign": "Est",
- "merged_headsign": "Est",
- "schedule_items": [
- {
- "departure_time": 1706733879,
- "is_cancelled": false,
- "is_real_time": true,
- "rt_trip_id": "271172518",
- "scheduled_departure_time": 1706734020,
- "trip_search_key": "STM:44434357:147:1:50",
- "wheelchair_accessible": 1
}, - {
- "departure_time": 1706734504,
- "is_cancelled": false,
- "is_real_time": true,
- "rt_trip_id": "271172434",
- "scheduled_departure_time": 1706734740,
- "trip_search_key": "STM:44434357:147:1:51",
- "wheelchair_accessible": 1
}, - {
- "departure_time": 1706735116,
- "is_cancelled": false,
- "is_real_time": true,
- "rt_trip_id": "271172379",
- "scheduled_departure_time": 1706735400,
- "trip_search_key": "STM:44434357:147:1:52",
- "wheelchair_accessible": 1
}
]
}, - {
- "branch_code": "",
- "closest_stop": {
- "global_stop_id": "STM:99053",
- "location_type": 0,
- "parent_station_global_stop_id": null,
- "route_type": 3,
- "rt_stop_id": "50306",
- "stop_code": "50306",
- "stop_lat": 45.55555722737359,
- "stop_lon": -73.66822098284783,
- "stop_name": "Station Henri-Bourassa",
- "wheelchair_boarding": 1
}, - "direction_headsign": "Ouest",
- "direction_id": 1,
- "headsign": "Ouest",
- "merged_headsign": "Ouest",
- "schedule_items": [
- {
- "departure_time": 1706734068,
- "is_cancelled": false,
- "is_real_time": true,
- "rt_trip_id": "271172405",
- "scheduled_departure_time": 1706733900,
- "trip_search_key": "STM:44434357:146:1:49",
- "wheelchair_accessible": 1
}, - {
- "departure_time": 1706734255,
- "is_cancelled": false,
- "is_real_time": true,
- "rt_trip_id": "271172335",
- "scheduled_departure_time": 1706734440,
- "trip_search_key": "STM:44434357:146:1:50",
- "wheelchair_accessible": 1
}, - {
- "departure_time": 1706735014,
- "is_cancelled": false,
- "is_real_time": true,
- "rt_trip_id": "271172454",
- "scheduled_departure_time": 1706735040,
- "trip_search_key": "STM:44434357:146:1:51",
- "wheelchair_accessible": 1
}
]
}
], - "mode_name": "Bus",
- "real_time_route_id": "69",
- "route_color": "781b7d",
- "route_display_short_name": {
- "boxed_text": "",
- "elements": [
- null,
- "69",
- null
], - "route_name_redundancy": false
}, - "route_long_name": "Gouin",
- "route_short_name": "69",
- "route_text_color": "ffffff",
- "route_type": 3,
- "sorting_key": "69",
- "tts_long_name": "Gouin",
- "tts_short_name": "69"
}, - {
- "compact_display_short_name": {
- "boxed_text": "",
- "elements": [
- null,
- "25",
- null
], - "route_name_redundancy": false
}, - "global_route_id": "MRCLM:2219",
- "itineraries": [
- {
- "branch_code": "",
- "closest_stop": {
- "global_stop_id": "MRCLM:18221",
- "location_type": 0,
- "parent_station_global_stop_id": null,
- "route_type": 3,
- "rt_stop_id": "84657",
- "stop_code": "84657",
- "stop_lat": 45.55546729534004,
- "stop_lon": -73.667870247917,
- "stop_name": "Terminus Henri-Bourassa",
- "wheelchair_boarding": 0
}, - "direction_headsign": "Terminus Terrebonne",
- "direction_id": 1,
- "headsign": "Terminus Terrebonne",
- "merged_headsign": "Terminus Terrebonne",
- "schedule_items": [
- {
- "departure_time": 1706734980,
- "is_cancelled": false,
- "is_real_time": false,
- "rt_trip_id": "3258106-TM-H24-TM_GTFS-Semaine-01",
- "scheduled_departure_time": 1706734980,
- "trip_search_key": "MRCLM:44089199:86:41:11",
- "wheelchair_accessible": 0
}, - {
- "departure_time": 1706736720,
- "is_cancelled": false,
- "is_real_time": false,
- "rt_trip_id": "3258082-TM-H24-TM_GTFS-Semaine-01",
- "scheduled_departure_time": 1706736720,
- "trip_search_key": "MRCLM:44089199:86:41:12",
- "wheelchair_accessible": 0
}, - {
- "departure_time": 1706738520,
- "is_cancelled": false,
- "is_real_time": false,
- "rt_trip_id": "3258234-TM-H24-TM_GTFS-Semaine-01",
- "scheduled_departure_time": 1706738520,
- "trip_search_key": "MRCLM:44089199:86:41:13",
- "wheelchair_accessible": 0
}
]
}
], - "mode_name": "Bus",
- "real_time_route_id": "25",
- "route_color": "0669b2",
- "route_display_short_name": {
- "boxed_text": "",
- "elements": [
- null,
- "25",
- null
], - "route_name_redundancy": false
}, - "route_long_name": "Terrebonne - Montréal",
- "route_short_name": "25",
- "route_text_color": "ffffff",
- "route_type": 3,
- "sorting_key": "25",
- "tts_long_name": "Terrebonne - Montréal",
- "tts_short_name": "25"
}, - {
- "compact_display_short_name": {
- "boxed_text": "",
- "elements": [
- null,
- "31",
- null
], - "route_name_redundancy": false
}, - "global_route_id": "STM:885",
- "itineraries": [
- {
- "branch_code": "",
- "closest_stop": {
- "global_stop_id": "STM:93904",
- "location_type": 0,
- "parent_station_global_stop_id": null,
- "route_type": 3,
- "rt_stop_id": "50305",
- "stop_code": "50305",
- "stop_lat": 45.55509857400249,
- "stop_lon": -73.66755548579957,
- "stop_name": "Station Henri-Bourassa",
- "wheelchair_boarding": 1
}, - "direction_headsign": "Nord",
- "direction_id": 0,
- "headsign": "Nord",
- "merged_headsign": "Nord",
- "schedule_items": [
- {
- "departure_time": 1706734888,
- "is_cancelled": false,
- "is_real_time": true,
- "rt_trip_id": "270711186",
- "scheduled_departure_time": 1706735100,
- "trip_search_key": "STM:44434357:59:1:25",
- "wheelchair_accessible": 1
}, - {
- "departure_time": 1706736780,
- "is_cancelled": false,
- "is_real_time": false,
- "rt_trip_id": "270709108",
- "scheduled_departure_time": 1706736780,
- "trip_search_key": "STM:44434357:59:1:26",
- "wheelchair_accessible": 1
}, - {
- "departure_time": 1706738280,
- "is_cancelled": false,
- "is_real_time": false,
- "rt_trip_id": "270710705",
- "scheduled_departure_time": 1706738280,
- "trip_search_key": "STM:44434357:59:1:27",
- "wheelchair_accessible": 1
}
]
}, - {
- "branch_code": "",
- "closest_stop": {
- "global_stop_id": "STM:93852",
- "location_type": 0,
- "parent_station_global_stop_id": null,
- "route_type": 3,
- "rt_stop_id": "50314",
- "stop_code": "50314",
- "stop_lat": 45.55695117389361,
- "stop_lon": -73.66803212557738,
- "stop_name": "Millen / Henri-Bourassa",
- "wheelchair_boarding": 1
}, - "direction_headsign": "Sud",
- "direction_id": 1,
- "headsign": "Sud",
- "merged_headsign": "Sud",
- "schedule_items": [
- {
- "departure_time": 1706734200,
- "is_cancelled": false,
- "is_real_time": true,
- "rt_trip_id": "270710703",
- "scheduled_departure_time": 1706734200,
- "trip_search_key": "STM:44434357:58:1:24",
- "wheelchair_accessible": 1
}, - {
- "departure_time": 1706736180,
- "is_cancelled": false,
- "is_real_time": false,
- "rt_trip_id": "270711187",
- "scheduled_departure_time": 1706736180,
- "trip_search_key": "STM:44434357:58:1:25",
- "wheelchair_accessible": 1
}, - {
- "departure_time": 1706738160,
- "is_cancelled": false,
- "is_real_time": false,
- "rt_trip_id": "270709109",
- "scheduled_departure_time": 1706738160,
- "trip_search_key": "STM:44434357:58:1:26",
- "wheelchair_accessible": 1
}
]
}
], - "mode_name": "Bus",
- "real_time_route_id": "31",
- "route_color": "009ee0",
- "route_display_short_name": {
- "boxed_text": "",
- "elements": [
- null,
- "31",
- null
], - "route_name_redundancy": false
}, - "route_long_name": "Saint-Denis",
- "route_short_name": "31",
- "route_text_color": "ffffff",
- "route_type": 3,
- "sorting_key": "31",
- "tts_long_name": "Saint-Denis",
- "tts_short_name": "31"
}, - {
- "compact_display_short_name": {
- "boxed_text": "",
- "elements": [
- null,
- "31",
- null
], - "route_name_redundancy": false
}, - "global_route_id": "STL:13349",
- "itineraries": [
- {
- "branch_code": "",
- "closest_stop": {
- "global_stop_id": "STL:27420",
- "location_type": 0,
- "parent_station_global_stop_id": null,
- "route_type": 3,
- "rt_stop_id": "40131",
- "stop_code": "40131",
- "stop_lat": 45.55702311952044,
- "stop_lon": -73.66754649259622,
- "stop_name": "Terminus Henri-Bourassa",
- "wheelchair_boarding": 2
}, - "direction_headsign": "Sud",
- "direction_id": 0,
- "headsign": "Métro Henri-Bourassa",
- "merged_headsign": "Sud vers Métro Henri-Bourassa",
- "schedule_items": [ ]
}, - {
- "branch_code": "",
- "closest_stop": {
- "global_stop_id": "STL:27292",
- "location_type": 0,
- "parent_station_global_stop_id": null,
- "route_type": 3,
- "rt_stop_id": "46654",
- "stop_code": "46654",
- "stop_lat": 45.55700513311373,
- "stop_lon": -73.66754649259622,
- "stop_name": "Terminus Henri-Bourassa",
- "wheelchair_boarding": 1
}, - "direction_headsign": "Nord",
- "direction_id": 1,
- "headsign": "Auteuil",
- "merged_headsign": "Nord vers Auteuil",
- "schedule_items": [
- {
- "departure_time": 1706734680,
- "is_cancelled": false,
- "is_real_time": true,
- "rt_trip_id": "31N1L30316510115",
- "scheduled_departure_time": 1706734680,
- "trip_search_key": "STL:44437779:21:0:12",
- "wheelchair_accessible": 2
}, - {
- "departure_time": 1706736420,
- "is_cancelled": false,
- "is_real_time": false,
- "rt_trip_id": "31N1L31017200125",
- "scheduled_departure_time": 1706736420,
- "trip_search_key": "STL:44437779:21:0:13",
- "wheelchair_accessible": 2
}, - {
- "departure_time": 1706737500,
- "is_cancelled": false,
- "is_real_time": true,
- "rt_trip_id": "31N1L24117380129",
- "scheduled_departure_time": 1706737500,
- "trip_search_key": "STL:44437779:21:0:14",
- "wheelchair_accessible": 2
}
]
}
], - "mode_name": "Bus",
- "real_time_route_id": "JANV2431N",
- "route_color": "00327f",
- "route_display_short_name": {
- "boxed_text": "",
- "elements": [
- null,
- "31",
- null
], - "route_name_redundancy": false
}, - "route_long_name": "Auteuil",
- "route_short_name": "31",
- "route_text_color": "ffffff",
- "route_type": 3,
- "sorting_key": "31",
- "tts_long_name": "Auteuil",
- "tts_short_name": "31"
}, - {
- "compact_display_short_name": {
- "boxed_text": "",
- "elements": [
- null,
- "52",
- null
], - "route_name_redundancy": false
}, - "global_route_id": "STL:13363",
- "itineraries": [
- {
- "branch_code": "",
- "closest_stop": {
- "global_stop_id": "STL:28930",
- "location_type": 0,
- "parent_station_global_stop_id": null,
- "route_type": 3,
- "rt_stop_id": "46654",
- "stop_code": "46654",
- "stop_lat": 45.55700513311373,
- "stop_lon": -73.66754649259622,
- "stop_name": "Terminus Henri-Bourassa",
- "wheelchair_boarding": 1
}, - "direction_headsign": "Est",
- "direction_id": 0,
- "headsign": "Saint-François",
- "merged_headsign": "Est vers Saint-François",
- "schedule_items": [
- {
- "departure_time": 1706734380,
- "is_cancelled": false,
- "is_real_time": true,
- "rt_trip_id": "52E2L17917060025",
- "scheduled_departure_time": 1706734380,
- "trip_search_key": "STL:44437779:56:0:10",
- "wheelchair_accessible": 2
}, - {
- "departure_time": 1706738100,
- "is_cancelled": false,
- "is_real_time": false,
- "rt_trip_id": "52E2L32118070031",
- "scheduled_departure_time": 1706738100,
- "trip_search_key": "STL:44437779:56:0:11",
- "wheelchair_accessible": 2
}, - {
- "departure_time": 1706742000,
- "is_cancelled": false,
- "is_real_time": false,
- "rt_trip_id": "52E2L34919060035",
- "scheduled_departure_time": 1706742000,
- "trip_search_key": "STL:44437779:56:0:12",
- "wheelchair_accessible": 2
}
]
}, - {
- "branch_code": "",
- "closest_stop": {
- "global_stop_id": "STL:29144",
- "location_type": 0,
- "parent_station_global_stop_id": null,
- "route_type": 3,
- "rt_stop_id": "40131",
- "stop_code": "40131",
- "stop_lat": 45.55702311952044,
- "stop_lon": -73.66754649259622,
- "stop_name": "Terminus Henri-Bourassa",
- "wheelchair_boarding": 2
}, - "direction_headsign": "Ouest",
- "direction_id": 1,
- "headsign": "Métro Henri-Bourassa",
- "merged_headsign": "Ouest vers Métro Henri-Bourassa",
- "schedule_items": [ ]
}
], - "mode_name": "Bus",
- "real_time_route_id": "JANV2452E",
- "route_color": "00327f",
- "route_display_short_name": {
- "boxed_text": "",
- "elements": [
- null,
- "52",
- null
], - "route_name_redundancy": false
}, - "route_long_name": "Saint-François",
- "route_short_name": "52",
- "route_text_color": "ffffff",
- "route_type": 3,
- "sorting_key": "52",
- "tts_long_name": "Saint-François",
- "tts_short_name": "52"
}, - {
- "compact_display_short_name": {
- "boxed_text": "",
- "elements": [
- null,
- "252",
- null
], - "route_name_redundancy": false
}, - "global_route_id": "STL:13343",
- "itineraries": [
- {
- "branch_code": "",
- "closest_stop": {
- "global_stop_id": "STL:26892",
- "location_type": 0,
- "parent_station_global_stop_id": null,
- "route_type": 3,
- "rt_stop_id": "46654",
- "stop_code": "46654",
- "stop_lat": 45.55700513311373,
- "stop_lon": -73.66754649259622,
- "stop_name": "Terminus Henri-Bourassa",
- "wheelchair_boarding": 1
}, - "direction_headsign": "Est",
- "direction_id": 0,
- "headsign": "Saint-François",
- "merged_headsign": "Est vers Saint-François",
- "schedule_items": [
- {
- "departure_time": 1706735640,
- "is_cancelled": false,
- "is_real_time": true,
- "rt_trip_id": "252E1L16717080027",
- "scheduled_departure_time": 1706735640,
- "trip_search_key": "STL:44437779:98:0:2",
- "wheelchair_accessible": 2
}, - {
- "departure_time": 1706736840,
- "is_cancelled": false,
- "is_real_time": true,
- "rt_trip_id": "252E1L21717280029",
- "scheduled_departure_time": 1706736840,
- "trip_search_key": "STL:44437779:98:0:3",
- "wheelchair_accessible": 2
}, - {
- "departure_time": 1706739840,
- "is_cancelled": false,
- "is_real_time": true,
- "rt_trip_id": "252E1L20018110033",
- "scheduled_departure_time": 1706739840,
- "trip_search_key": "STL:44437779:98:0:4",
- "wheelchair_accessible": 2
}
]
}, - {
- "branch_code": "",
- "closest_stop": {
- "global_stop_id": "STL:27005",
- "location_type": 0,
- "parent_station_global_stop_id": null,
- "route_type": 3,
- "rt_stop_id": "40131",
- "stop_code": "40131",
- "stop_lat": 45.55702311952044,
- "stop_lon": -73.66754649259622,
- "stop_name": "Terminus Henri-Bourassa",
- "wheelchair_boarding": 2
}, - "direction_headsign": "Ouest",
- "direction_id": 1,
- "headsign": "Métro Henri-Bourassa",
- "merged_headsign": "Ouest vers Métro Henri-Bourassa",
- "schedule_items": [ ]
}
], - "mode_name": "Bus",
- "real_time_route_id": "JANV24252E",
- "route_color": "00327f",
- "route_display_short_name": {
- "boxed_text": "",
- "elements": [
- null,
- "252",
- null
], - "route_name_redundancy": false
}, - "route_long_name": "Saint-François",
- "route_short_name": "252",
- "route_text_color": "ffffff",
- "route_type": 3,
- "sorting_key": "252",
- "tts_long_name": "Saint-François",
- "tts_short_name": "252"
}, - {
- "compact_display_short_name": {
- "boxed_text": "",
- "elements": [
- null,
- "55",
- null
], - "route_name_redundancy": false
}, - "global_route_id": "STL:13364",
- "itineraries": [
- {
- "branch_code": "",
- "closest_stop": {
- "global_stop_id": "STL:29145",
- "location_type": 0,
- "parent_station_global_stop_id": null,
- "route_type": 3,
- "rt_stop_id": "46654",
- "stop_code": "46654",
- "stop_lat": 45.55700513311373,
- "stop_lon": -73.66754649259622,
- "stop_name": "Terminus Henri-Bourassa",
- "wheelchair_boarding": 1
}, - "direction_headsign": "Nord",
- "direction_id": 1,
- "headsign": "Laval-Ouest",
- "merged_headsign": "Nord vers Laval-Ouest",
- "schedule_items": [
- {
- "departure_time": 1706736180,
- "is_cancelled": false,
- "is_real_time": false,
- "rt_trip_id": "55N2L30817430023",
- "scheduled_departure_time": 1706736180,
- "trip_search_key": "STL:44437779:58:0:11",
- "wheelchair_accessible": 2
}, - {
- "departure_time": 1706738340,
- "is_cancelled": false,
- "is_real_time": true,
- "rt_trip_id": "55N2L18818120025",
- "scheduled_departure_time": 1706738340,
- "trip_search_key": "STL:44437779:58:0:12",
- "wheelchair_accessible": 2
}, - {
- "departure_time": 1706740380,
- "is_cancelled": false,
- "is_real_time": false,
- "rt_trip_id": "55N2L33718390027",
- "scheduled_departure_time": 1706740380,
- "trip_search_key": "STL:44437779:58:0:13",
- "wheelchair_accessible": 2
}
]
}
], - "mode_name": "Bus",
- "real_time_route_id": "JANV2455N",
- "route_color": "00327f",
- "route_display_short_name": {
- "boxed_text": "",
- "elements": [
- null,
- "55",
- null
], - "route_name_redundancy": false
}, - "route_long_name": "Laval-Ouest",
- "route_short_name": "55",
- "route_text_color": "ffffff",
- "route_type": 3,
- "sorting_key": "55",
- "tts_long_name": "Laval-Ouest",
- "tts_short_name": "55"
}
]
}
Returns stops around a location
lat required | number <double> Example: lat=45.526168077787894 Latitude |
lon required | number <double> Example: lon=-73.59506067289408 Longitude |
max_distance | integer <= 1500 Default: 150 Example: max_distance=1500 Maximum radius of search from the request location (in meters) |
stop_filter | string Default: "Routable" Enum: "Routable" "EntrancesAndStopsOutsideStations" "Entrances" "Any" Example: stop_filter=Routable Determines which location types from the GTFS are included in the response.
|
pickup_dropoff_filter | string Enum: "PickupAllowedOnly" "DropoffAllowedOnly" "Everything" For routable stops, futher filter based on whether a rider can embark or disembark at this stop.
For further reference, see the GTFS pickup_type and drop_off_type fields.' |
Accept-Language | string Example: fr,en Names and other strings can translated into any of the supported languages of a feed. If not provided, the default language of the feed is selected. |
{- "stops": [
- {
- "distance": 45,
- "global_stop_id": "1:94380",
- "location_type": 0,
- "parent_station_global_stop_id": "string",
- "route_type": 0,
- "stop_lat": 45.526168077787894,
- "stop_lon": -73.59506067289408,
- "stop_name": "De Gaspé / Maguire",
- "stop_code": "51752",
- "rt_stop_id": "51752",
- "wheelchair_boarding": 1
}
]
}
Get upcoming departures for all routes serving a stop, with optional real time information.
global_stop_id required | string Example: global_stop_id=1:82774 A global stop ID, representing a routable stop. Usually this value will be reused from a previous call (ex : nearby_stops) |
time | number <int> Default: "The current time when the request was issued" UNIX timestamp representing the time for which departures should be determined |
remove_cancelled | boolean Default: false Remove cancelled schedule items from the results |
should_update_realtime | boolean Default: true Boolean telling the system if it should update real time or just return schedule information. |
Accept-Language | string Example: fr,en Names and other strings can translated into any of the supported languages of a feed. If not provided, the default language of the feed is selected. |
{- "route_departures": [
- {
- "global_route_id": "1:897",
- "itineraries": [
- {
- "direction_id": 0,
- "headsign": "string",
- "direction_headsign": "string",
- "merged_headsign": "string",
- "schedule_items": [
- {
- "departure_time": 1614372300,
- "is_cancelled": true,
- "is_real_time": true,
- "rt_trip_id": "229201965",
- "scheduled_departure_time": 1614372300,
- "wheelchair_accessible": 1,
- "trip_search_key": "BCTWK:38359648:33:28:1"
}
], - "branch_code": "string",
- "closest_stop": {
- "distance": 45,
- "global_stop_id": "1:94380",
- "location_type": 0,
- "parent_station_global_stop_id": "string",
- "route_type": 0,
- "stop_lat": 45.526168077787894,
- "stop_lon": -73.59506067289408,
- "stop_name": "De Gaspé / Maguire",
- "stop_code": "51752",
- "rt_stop_id": "51752",
- "wheelchair_boarding": 1
}
}
], - "route_long_name": "Casgrain",
- "route_short_name": "46",
- "route_display_short_name": {
- "elements": [
- "string",
- "string",
- "string"
], - "route_name_redundancy": null,
- "boxed_text": "string"
}, - "compact_display_short_name": {
- "elements": [
- "string",
- "string",
- "string"
], - "route_name_redundancy": null,
- "boxed_text": "string"
}, - "route_type": 0,
- "route_color": "string",
- "route_text_color": "string",
- "route_network_name": "string",
- "route_network_id": "string",
- "tts_long_name": "string",
- "tts_short_name": "string",
- "sorting_key": "string",
- "mode_name": "string",
- "real_time_route_id": "string"
}
]
}
Except as noted, the API is compatible with the OpenTripPlanner API. For additional information, you may refer to http://dev.opentripplanner.org/apidoc/2.0.0/resource_PlannerResource.html.
arriveBy | boolean Default: false Selects 'leave after' or 'arrive by' planning.
| |||||||||||||||||||||||||||||||||||||||
date | string <%Y-%m-%d> Default: "Current time when request was issued." Example: date=2021-01-29 Date of departure or arrival. Must be in UTC. | |||||||||||||||||||||||||||||||||||||||
time | string <%H:%M> Default: "Current time when request was issued." Example: time=20:45 Time of departure or arrival. Must be in UTC. | |||||||||||||||||||||||||||||||||||||||
mode | string Default: "TRANSIT,WALK" Example: mode=TRANSIT,BICYCLE_RENT The following combinations of mode are currently supported.
| |||||||||||||||||||||||||||||||||||||||
fromPlace required | string Example: fromPlace=45.51487167249841, -73.56092863046088 Originating location for the trip.
| |||||||||||||||||||||||||||||||||||||||
numItineraries | integer <int32> [ 1 .. 3 ] Default: 3 The maximum number of possible itineraries to return. | |||||||||||||||||||||||||||||||||||||||
toPlace required | string Example: toPlace=45.526168077787894,-73.59506067289408 Destination location for the trip.
| |||||||||||||||||||||||||||||||||||||||
locale | string Default: "en" Language to be used for names in response | |||||||||||||||||||||||||||||||||||||||
walkReluctance | number Default: 2 Walking is minimized if walkReluctance ≥ 20.0. | |||||||||||||||||||||||||||||||||||||||
wheelchair | boolean Default: false Whether the trip must be wheelchair accessible. | |||||||||||||||||||||||||||||||||||||||
ignoreRealTimeUpdates | boolean Default: false If false, times within trip plans reflect real-time information if available. | |||||||||||||||||||||||||||||||||||||||
allowedNetworks | string Example: allowedNetworks=MBTA|Boston,RIPTA|Providence If set, only the specified networks will be used to plan trips. A list of available networks can be obtained from This parameter will accept a comma-separated list containing network IDs, network locations or a combination of both.
Provides similar functionality to the OTP parameter |
Accept-Language | string Example: fr,en Names and other strings can translated into any of the supported languages of a feed. If not provided, the default language of the feed is selected. |
{- "plan": {
- "date": 0,
- "from": {
- "lat": 0,
- "lon": 0,
- "name": "string",
- "vertexType": "TRANSIT"
}, - "itineraries": [
- {
- "accessibility": "None",
- "duration": 0,
- "endTime": 0,
- "legs": [
- {
- "agencyId": "1:STM",
- "agencyName": "Société de transport de Montréal",
- "agencyTimeZoneOffset": -18000000,
- "agencyUrl": "string",
- "distance": 0,
- "duration": 0,
- "endTime": 0,
- "from": {
- "lat": 0,
- "lon": 0,
- "name": "string",
- "stopCode": "string",
- "stopId": "36:L16",
- "globalStopId": "1:94380",
- "stopIndex": 0,
- "vertexType": "TRANSIT"
}, - "headsign": "East",
- "intermediateStops": [
- {
- "lat": 0,
- "lon": 0,
- "name": "string",
- "stopCode": "string",
- "stopId": "36:L16",
- "globalStopId": "1:94380",
- "stopIndex": 0,
- "vertexType": "TRANSIT"
}
], - "legGeometry": {
- "length": 0,
- "points": "string"
}, - "mode": "TRANSIT",
- "route": "string",
- "routeColor": "string",
- "routeId": "36:L",
- "globalRouteId": "1:897",
- "routeLongName": "Casgrain",
- "routeShortName": "46",
- "routeTextColor": "string",
- "routeType": 0,
- "startTime": 0,
- "to": {
- "lat": 0,
- "lon": 0,
- "name": "string",
- "stopCode": "string",
- "stopId": "36:L16",
- "globalStopId": "1:94380",
- "stopIndex": 0,
- "vertexType": "TRANSIT"
}, - "transitLeg": true,
- "tripBlockId": "string",
- "tripId": "string",
- "tripShortName": "106",
- "tripSearchKey": "BCTWK:38359648:33:28:1",
- "interlineWithPreviousLeg": true,
- "realTime": true,
- "departureDelay": 0,
- "arrivalDelay": 0
}
], - "startTime": 0,
- "transfers": 0,
- "transitTime": 0,
- "walkTime": 0,
- "wheelchairNeed": "string"
}
], - "to": {
- "lat": 0,
- "lon": 0,
- "name": "string",
- "vertexType": "TRANSIT"
}
}, - "transfers": {
- "bufferTime": 0,
- "defaultMinimumTime": 0,
- "minimumTimes": [
- {
- "fromFeedId": 0,
- "fromStopId": 0,
- "minTime": 0,
- "toFeedId": 0,
- "toStopId": 0
}
]
}
}
List of networks available in the entire Transit system. For more information about networks, refer to the /public/stop_departures endpoint and the 'route_network_name'. Optionnaly, a lat/lon can be passed to filter networks to only the ones that support that coordinate.
lat | number Optional latitude, if provided in addition to |
lon | number Optional longitude, if provided in addition to |
include_all_networks | boolean Default: false Include additional supported networks that are filtered out by default. For example, these may include school busses and previews of upcoming agency network redesigns. |
include_network_geometry | boolean Default: "true" Include the network geometry in the response. True by default. |
Accept-Language | string Example: fr,en Names and other strings can translated into any of the supported languages of a feed. If not provided, the default language of the feed is selected. |
{- "networks": [
- {
- "network_geometry": { },
- "network_id": "BC Transit West Kootenay|West Kootenay",
- "network_name": "BC Transit West Kootenay",
- "network_location": "West Kootenay"
}
]
}
Get detailed information like shape and itineraries for a route
global_route_id required | string Global route id provided by other endpoint on which more detail is requested. |
include_next_departure | boolean Default: false If set to true, will make the stop list include the next departure for each stop. |
Accept-Language | string Example: fr,en Names and other strings can translated into any of the supported languages of a feed. If not provided, the default language of the feed is selected. |
{- "itineraries": [
- {
- "direction_headsign": "string",
- "direction_id": 0,
- "headsign": "string",
- "merged_headsign": "string",
- "shape": "string",
- "stops": [
- {
- "distance": 45,
- "global_stop_id": "1:94380",
- "location_type": 0,
- "parent_station_global_stop_id": "string",
- "route_type": 0,
- "stop_lat": 45.526168077787894,
- "stop_lon": -73.59506067289408,
- "stop_name": "De Gaspé / Maguire",
- "stop_code": "51752",
- "rt_stop_id": "51752",
- "wheelchair_boarding": 1
}
], - "next_departure": {
- "departure_time": 1614372300,
- "is_cancelled": true,
- "is_real_time": true,
- "rt_trip_id": "229201965",
- "scheduled_departure_time": 1614372300,
- "wheelchair_accessible": 1,
- "trip_search_key": "BCTWK:38359648:33:28:1"
}, - "canonical_itinerary": false,
- "is_active": true
}
], - "route": {
- "global_route_id": "1:897",
- "itineraries": [
- {
- "direction_id": 0,
- "headsign": "string",
- "direction_headsign": "string",
- "merged_headsign": "string",
- "schedule_items": [
- {
- "departure_time": 1614372300,
- "is_cancelled": true,
- "is_real_time": true,
- "rt_trip_id": "229201965",
- "scheduled_departure_time": 1614372300,
- "wheelchair_accessible": 1,
- "trip_search_key": "BCTWK:38359648:33:28:1"
}
], - "branch_code": "string",
- "closest_stop": {
- "distance": 45,
- "global_stop_id": "1:94380",
- "location_type": 0,
- "parent_station_global_stop_id": "string",
- "route_type": 0,
- "stop_lat": 45.526168077787894,
- "stop_lon": -73.59506067289408,
- "stop_name": "De Gaspé / Maguire",
- "stop_code": "51752",
- "rt_stop_id": "51752",
- "wheelchair_boarding": 1
}
}
], - "route_long_name": "Casgrain",
- "route_short_name": "46",
- "route_display_short_name": {
- "elements": [
- "string",
- "string",
- "string"
], - "route_name_redundancy": null,
- "boxed_text": "string"
}, - "compact_display_short_name": {
- "elements": [
- "string",
- "string",
- "string"
], - "route_name_redundancy": null,
- "boxed_text": "string"
}, - "route_type": 0,
- "route_color": "string",
- "route_text_color": "string",
- "route_network_name": "string",
- "route_network_id": "string",
- "tts_long_name": "string",
- "tts_short_name": "string",
- "sorting_key": "string",
- "mode_name": "string",
- "real_time_route_id": "string"
}
}
Return all the routes for a given network. Deprecated, use routes_for_networks
instead. This call will be removed on 2025-03-01.
network_id | string Example: network_id=BC Transit West Kootenay|West Kootenay Network ID or Network Location provided from |
lat | number Any lat of a location that serves that network. If provided, the performance of this call will be improved. |
lon | number Any lon of a location that serves that network. If provided, the performance of this call will be improved. |
Accept-Language | string Example: fr,en Names and other strings can translated into any of the supported languages of a feed. If not provided, the default language of the feed is selected. |
{- "routes": [
- {
- "global_route_id": "1:897",
- "itineraries": [
- {
- "direction_id": 0,
- "headsign": "string",
- "direction_headsign": "string",
- "merged_headsign": "string",
- "schedule_items": [
- {
- "departure_time": 1614372300,
- "is_cancelled": true,
- "is_real_time": true,
- "rt_trip_id": "229201965",
- "scheduled_departure_time": 1614372300,
- "wheelchair_accessible": 1,
- "trip_search_key": "BCTWK:38359648:33:28:1"
}
], - "branch_code": "string",
- "closest_stop": {
- "distance": 45,
- "global_stop_id": "1:94380",
- "location_type": 0,
- "parent_station_global_stop_id": "string",
- "route_type": 0,
- "stop_lat": 45.526168077787894,
- "stop_lon": -73.59506067289408,
- "stop_name": "De Gaspé / Maguire",
- "stop_code": "51752",
- "rt_stop_id": "51752",
- "wheelchair_boarding": 1
}
}
], - "route_long_name": "Casgrain",
- "route_short_name": "46",
- "route_display_short_name": {
- "elements": [
- "string",
- "string",
- "string"
], - "route_name_redundancy": null,
- "boxed_text": "string"
}, - "compact_display_short_name": {
- "elements": [
- "string",
- "string",
- "string"
], - "route_name_redundancy": null,
- "boxed_text": "string"
}, - "route_type": 0,
- "route_color": "string",
- "route_text_color": "string",
- "route_network_name": "string",
- "route_network_id": "string",
- "tts_long_name": "string",
- "tts_short_name": "string",
- "sorting_key": "string",
- "mode_name": "string",
- "real_time_route_id": "string"
}
]
}
Return all the routes for a list of given networks.
network_ids | string Example: network_ids=BC Transit West Kootenay|West Kootenay List of comma seperated Network IDs provided from |
lat | number Any lat of a location that serves that network. If provided, the performance of this call will be improved. |
lon | number Any lon of a location that serves that network. If provided, the performance of this call will be improved. |
include_itineraries | boolean If set to true, the response will include itineraries detail for the listed routes. |
Accept-Language | string Example: fr,en Names and other strings can translated into any of the supported languages of a feed. If not provided, the default language of the feed is selected. |
{- "routes": [
- {
- "global_route_id": "1:897",
- "itineraries": [
- {
- "direction_id": 0,
- "headsign": "string",
- "direction_headsign": "string",
- "merged_headsign": "string",
- "schedule_items": [
- {
- "departure_time": 1614372300,
- "is_cancelled": true,
- "is_real_time": true,
- "rt_trip_id": "229201965",
- "scheduled_departure_time": 1614372300,
- "wheelchair_accessible": 1,
- "trip_search_key": "BCTWK:38359648:33:28:1"
}
], - "branch_code": "string",
- "closest_stop": {
- "distance": 45,
- "global_stop_id": "1:94380",
- "location_type": 0,
- "parent_station_global_stop_id": "string",
- "route_type": 0,
- "stop_lat": 45.526168077787894,
- "stop_lon": -73.59506067289408,
- "stop_name": "De Gaspé / Maguire",
- "stop_code": "51752",
- "rt_stop_id": "51752",
- "wheelchair_boarding": 1
}
}
], - "route_long_name": "Casgrain",
- "route_short_name": "46",
- "route_display_short_name": {
- "elements": [
- "string",
- "string",
- "string"
], - "route_name_redundancy": null,
- "boxed_text": "string"
}, - "compact_display_short_name": {
- "elements": [
- "string",
- "string",
- "string"
], - "route_name_redundancy": null,
- "boxed_text": "string"
}, - "route_type": 0,
- "route_color": "string",
- "route_text_color": "string",
- "route_network_name": "string",
- "route_network_id": "string",
- "tts_long_name": "string",
- "tts_short_name": "string",
- "sorting_key": "string",
- "mode_name": "string",
- "real_time_route_id": "string"
}
]
}
Return all the stops for a given network.
network_id | string Example: network_id=BC Transit West Kootenay|West Kootenay Network ID or Network Location provided from |
lat | number Any lat of a location that serves that network. If provided, the performance of this call will be improved. |
lon | number Any lon of a location that serves that network. If provided, the performance of this call will be improved. |
Accept-Language | string Example: fr,en Names and other strings can translated into any of the supported languages of a feed. If not provided, the default language of the feed is selected. |
{- "stops": [
- {
- "distance": 45,
- "global_stop_id": "1:94380",
- "location_type": 0,
- "parent_station_global_stop_id": "string",
- "route_type": 0,
- "stop_lat": 45.526168077787894,
- "stop_lon": -73.59506067289408,
- "stop_name": "De Gaspé / Maguire",
- "stop_code": "51752",
- "rt_stop_id": "51752",
- "wheelchair_boarding": 1
}
]
}
Return the time of the most recent data update for a given network ID or network location
network_id | string Example: network_id=BC Transit West Kootenay|West Kootenay Network ID or Network Location provided from |
lat | number Any lat of a location that serves that network. If provided, the performance of this call will be improved. |
lon | number Any lon of a location that serves that network. If provided, the performance of this call will be improved. |
{- "time": 0
}
Given coordinates of an approximate area to search, find transit stops whose names or stop codes match the given search term, from feeds which serve the search area.
lat | number Latitude of the approximate area of the search. |
lon | number Longitude of the approximate area of the search. |
query | string Search term. Will be matched against the |
pickup_dropoff_filter | string Enum: "PickupAllowedOnly" "DropoffAllowedOnly" "Everything" For routable stops, futher filter based on whether a rider can embark or disembark at this stop.
For further reference, see the GTFS pickup_type and drop_off_type fields.' |
max_num_results | integer [ 1 .. 50 ] Maximum number of results to return. If there are few matches, less results than requested will be returned. |
Accept-Language | string Example: fr,en Names and other strings can translated into any of the supported languages of a feed. If not provided, the default language of the feed is selected. |
{- "results": [
- {
- "global_stop_id": "1:94380",
- "location_type": "0",
- "match_strength": 1,
- "parent_station_global_stop_id": "1:94380",
- "route_type": "string",
- "stop_lat": 0,
- "stop_lon": 0,
- "stop_name": "string"
}
]
}
Provides scheduled times and stop information for an entire trip
trip_search_key required | string A trip identifier obtained from other endpoints like |
Accept-Language | string Example: fr,en Names and other strings can translated into any of the supported languages of a feed. If not provided, the default language of the feed is selected. |
{- "route": {
- "compact_display_short_name": {
- "boxed_text": "string",
- "elements": [
- "string",
- "string",
- "string"
], - "route_name_redundancy": "boolean"
}, - "global_route_id": "string",
- "real_time_route_id": "string",
- "route_color": "string",
- "route_display_short_name": {
- "boxed_text": "string",
- "elements": [
- "string",
- "string",
- "string"
], - "route_name_redundancy": "boolean"
}, - "route_long_name": "string",
- "route_short_name": "string",
- "route_text_color": "string",
- "route_type": 0,
- "sorting_key": "string",
- "tts_long_name": "string",
- "tts_short_name": "string"
}, - "rt_trip_id": "string",
- "schedule_items": [
- {
- "departure_time": 0,
- "stop": {
- "global_stop_id": "string",
- "location_type": 0,
- "parent_station_global_stop_id": null,
- "route_type": 0,
- "rt_stop_id": "string",
- "stop_code": "string",
- "stop_lat": 0,
- "stop_lon": 0,
- "stop_name": "string",
- "wheelchair_boarding": 0
}
}
]
}