Developer Resources

getstoptimesbytrip

Get a list of stops with scheduled information about this trip.

URL

https://developer.mtd.org/api/{version}/{format}/getstoptimesbytrip

Remarks

Use this method to find out which stops a trip will service and the scheduled times. You can also use the stop_sequence to find out the next or previous stops.

Please note that we use a 30 hour clock. Any times past 24:00:00 are technically part of the next day, but we still consider them part of the same service day.

Parameters

key (required) your API key
trip_id (required) id of trip
changeset_id (optional) see interpretting responses for more information

Response

arrival_times scheduled time of arrival (HH:mm:ss)
departure_time scheduled time of departure (HH:mm:ss)
stop_id id of stop
stop_sequence sequence of stop
trip_id id of trip

Sample