Developer Resources

gettripsbyblock

Get trip information for a given block.

URL

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

Remarks

Keep in mind that not all trips for the same route service the same stops or use the same shape.

Trips are ordered by first arrival_time

Parameters

key (required) your API key
block_id (required) the block that you would like the trips for
changeset_id (optional) see interpretting responses for more information

Response

route_id id of route
service_id id of service
shape_id id of shape
trip_headsign information usually shown on headsign
trip_id id of trip

Sample