GET rtvehicles
Returns vehicle data based on the provided information.
Resource URL
http://api.rgrta.com/rtvehicles
Parameters
vehicleid
optional
|
Specifies the vehicle ID.
Example Value: 122 |
routeid
optional
|
Specifies the route ID to find vehicles currently on a specific route.
Example Value: 1 |
main
optional |
A flag to specify if the response should only return the main routes without any ETS routes. If you wish to only have main routes, this field should be set to "1".
Example Value: 1 |
Response Object
RTVehicles
Example Request
GET - http://api.rgrta.com/rtvehicles?vehicleid=122
[
{
"VehicleId":122,
"Timestamp":"3/20/2015 2:33:40 PM",
"VehiclePositionDateTime":"3/20/2015 2:32:33 PM",
"CurrentLat":"0",
"CurrentLon":"0",
"Heading":0,
"Speed":0,
"Deviation":0,
"RouteId":355,
"RouteNum":"28X/13X",
"Destination":"Edison Tech High School",
"LastPositionDateTime":"3/20/2015 8:47:09 AM",
"LastLat":"43.162708",
"LastLon":"-77.572922"
}
]