/vehicle/byRoute/{routeId}

This query returns information about all fixed route vehicles currently reporting AVL data working a specific route

Object type : vehicle

URL Parameters :

  • routeId the route's text id to get vehicle data for. In GTFS data this is the "route_id" column of routes.txt, in the RouteMatch schema it is the "FRMasterRouteIDName" column.

Query Parameters :

  • timeHorizon The maximum age, in minutes, of a vehicle's GPS data before that vehicle is removed from the query. For example if a vehicle hasn't reported GPS data in 35 minutes, and this value is 30, then the vehicle will not be included in the result. The default value is 30.

  • adherenceEnabled (boolean) – this option allows the calculation of schedule adherence to be disabled. When set to false the schedule adherence fields of the vehicle object will not be filled in, they will be set to null. This increases performance and should be used when the consuming application does not need schedule adherence information. The default value is false. Valid values are "true" or "false".

Example Queries :

Example 10. Red Route Vehicles

http://www.example.com/feed/vehicle/byRoute/Red