Back to API parent page

Method: stops-for-route

Retrieve the set of stops serving a particular route, including groups by direction of travel. The stops-for-route method first and foremost provides a method for retrieving the set of stops that serve a particular route. In addition to the full set of stops, we provide various stop groupings that are used to group the stops into useful collections. Currently, the main grouping provided organizes the set of stops by direction of travel for the route. Finally, this method also returns a set of polylines that can be used to draw the path traveled by the route.

Sample Response

  <data class="listWithReferences">

Request Parameters

  • id - The route id, encoded directly in the url:
    •[ID GOES HERE].xml
  • includePolylines=true|false = Optional parameter that controls whether polyline elements are included in the response. Defaults to true.