trip Method
Get details of a specific trip by id.
Example Request
https://api.pugetsound.onebusaway.org/api/where/trip/1_605425455.json?key=TEST
Example Response
{"code":200,"currentTime":1710978631903,"data":{"entry":{"blockId":"1_7085271","directionId":"1","id":"1_605425455","peakOffpeak":0,"routeId":"1_100224","routeShortName":"","serviceId":"1_45626","shapeId":"1_20044006","timeZone":"","tripHeadsign":"University Of Washington Medical Center Wallingford","tripShortName":""},"references":{"agencies":[{"disclaimer":"","email":"","fareUrl":"https://kingcounty.gov/en/dept/metro/fares-and-payment/prices","id":"1","lang":"EN","name":"Metro Transit","phone":"206-553-3000","privateService":false,"timezone":"America/Los_Angeles","url":"https://kingcounty.gov/en/dept/metro"}],"routes":[{"agencyId":"1","color":"","description":"Ballard - Montlake","id":"1_100224","longName":"","nullSafeShortName":"44","shortName":"44","textColor":"","type":3,"url":"https://kingcounty.gov/en/dept/metro/routes-and-service/schedules-and-maps/044.html"}],"situations":[],"stopTimes":[],"stops":[],"trips":[]}},"text":"OK","version":2}
Request Parameters
id
- the id of the trip, encoded directly in the URL:http://api.pugetsound.onebusaway.org/api/where/trip/[ID GOES HERE].xml
Response
See details about the various properties of the <trip/>
element.