Developer Resources

GetShape

Get a list of points that define the shape of the route on a map.

URL

https://developer.cumtd.com/api/{version}/{format}/GetShape

Remarks

These points describe the path of the route on a map and how far a bus travels along that path. It does not indicate what stops the bus will service! To get this information, use GetStopTimesByTrip.

To cut back on the amount of points, each path has been simplified in comparison to the path in the GTFS feed. This means that the shape_pt_sequence may not be contiguious, but will still convey the correct order.

Keep in mind that not all shape points directly correlate to stops so the stop_id may or may not exist

Parameters

key (required) your API key
shape_id (required) id of the shape
changeset_id (optional) see interpretting responses for more information

Response

shape_dist_traveled total distance traveled to this point
shape_pt_lat latitude of point
shape_pt_lon longitude of point
stop_id The stop id associeated with the shape point.
shape_pt_sequence sequence of point in GTFS feed

Sample