Entur Developer
Open
GraphQL

situations

subscription

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
openEnded·Boolean
minAge·Duration
includeClosed·Boolean= true

Defaults to true here (unlike Query.situations, which defaults to false): a live subscriber needs to observe a situation transitioning to progress: closed so it can remove it from display. One consequence: a new subscriber's initial snapshot also includes situations closed within the grace period, not just live ones.

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

·[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?