Entur Developer
Open
GraphQL

vehicles

subscription

Arguments

serviceJourneyId·String
date·String

Date as in "Operating date" when realtime-updates are referenced by ServiceJourneyId + Date

serviceJourneyIdAndDates·[ServiceJourneyIdAndDate]
datedServiceJourneyId·String
datedServiceJourneyIds·[String]
operatorRef·String
codespaceId·String
vehicleId·String
vehicleIds·[String]
lineRef·String
lineName·String
monitored·Boolean
boundingBox·BoundingBox
maxDataAge·Duration

Maximum age of data in the response as Duration (e.g. PT1M). If lastUpdated is older than this, it will not be included in the initial response.

includeInvalidLocations·Boolean= false

Include vehicles whose reported coordinates are known to be invalid (e.g. 0,0). Such vehicles are excluded by default.

bufferSize·Int= 20

Number of updates buffered before data is pushed. May be used in combination with bufferTime.

bufferTime·Int= 250

How long - in milliseconds - data is buffered before data is pushed. May be used in combination with bufferSize.

Return Type

·[VehicleUpdate]
direction·String
serviceJourney·ServiceJourney
datedServiceJourney·DatedServiceJourney
operator·Operator
codespace·Codespace
originRef·String
originName·String
destinationRef·String
destinationName·String
vehicleId·String
vehicleRef·Stringdeprecated
occupancy·OccupancyEnumerationdeprecated
occupancyStatus·OccupancyStatus
line·Line
lastUpdated·DateTime
lastUpdatedEpochSecond·Float
expiration·DateTime
expirationEpochSecond·Float
location·Location
speed·Float
heading·Floatdeprecated
bearing·Float

Compass bearing in degrees. When the producer reports none, it is calculated from the vehicle's previous position; null until the vehicle has moved.

monitored·Boolean
delay·Float

The current delay in seconds - negative delay means ahead of schedule

inCongestion·Boolean

Whether the vehicle is affected by traffic jams or other circumstances which may lead to further delays. If null, current status is unknown.

Reported status of the vehicle

progressBetweenStops·ProgressBetweenStops
monitoredCall·MonitoredCall
Did you find what you were looking for?