Entur Developer
Open
GraphQL

situations

query

Arguments

situationNumbers·[String]
codespaceId·String
operatorRef·String
lineRef·String
stopRef·String

Matches affected stop points and stop places alike.

serviceJourneyId·String
datedServiceJourneyId·String
reportType·String
validNow·Boolean

When true, only situations that are valid at the time of the request.

openEnded·Boolean

When true, only situations where no validity period carries an end time.

minAge·Duration

Only situations created longer ago than this, as Duration (e.g. P30D).

includeClosed·Boolean= false

Return Type

·[Situation]
situationNumber·String!
participantRef·String
codespace·Codespace
version·Int

The subscription stream is only eventually consistent: two concurrent updates to the same situation can be published in reverse version order. Clients should keep the highest version seen per situationNumber and discard a regression.

sourceType·String
priority·Int
reportType·String
keywords·[String]
planned·Boolean
creationTime·DateTime
versionedAtTime·DateTime
validityPeriods·[ValidityPeriod]
description·[TranslatedString]
affects·Affects
lastUpdated·DateTime
lastUpdatedEpochSecond·Float
expiration·DateTime

Null when the situation never expires.

expirationEpochSecond·Float
openEnded·Boolean

True when no validity period carries an end time.

Time elapsed since creationTime. Null when creationTime is absent.

Did you find what you were looking for?