shape Method

Retrieve a shape (the path traveled by a transit vehicle) by id.

Example Request

https://api.pugetsound.onebusaway.org/api/where/shape/1_10002005.json?key=TEST

Example Response

Request Parameters

  • id - the shape id, encoded directly in the URL:
    • http://api.pugetsound.onebusaway.org/api/where/shape/[ID GOES HERE].xml

Response

The path is returned as a <shape/> element with a points in the encoded polyline format defined for Google Maps.