Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Element

Required

Notes

SituationNumber

Required

An internal identifier for a situation. May contain characters, but the number obtained by removing the characters should be unique for the situation

SummariesSummary

Required

Short summary text

PtSituationElement items without any summaries summary are ignored.

Only In case multiple elements are present, only the first summary is read

DescriptionsDescription

Optional

Complete text note for the message

Only In case multiple elements are present, only the first description is read

CreationTime

Required

The time when this situation was created

Source.SourceType

Required

Required by the format specification, but not used by Samtrafiken

Source.ExternalCode

Optional

Code for this deviation in external systems

Source.Other

Optional

External system id

Source.Name

Optional

The name of the source. Currently never exported by Samtrafiken

Progress

Required

OPEN or CLOSED. Only Open messages are read by Samtrafiken

Info

When set to CLOSED, only SituationNumber is required, as Samtrafiken will just close the message without reading any other fields for possible updates.

ValidityPeriod

Required

Only the first validity period is read

ValidityPeriod.StartTime

Required

From which time the message applies

ValidityPeriod.EndTime

Optional

At which time the message no longer applies

UndefinedReason

Required

Reason should always be <UndefinedReason/>.

The field is mandatory due to format specification, but is not used.

Affects > StopPlaces > AffectedStopPlace

Optional

https://samtrafiken.atlassian.net/wiki/spaces/SamtrafikenOpenData/pages/4400152638/SIRI-SX+2.0#AffectedStopPlace

Currently unsupported

If affected stop places are set, no other type of affects should be set

Affects > StopPoints > AffectedStopPoints

Optional

https://samtrafiken.atlassian.net/wiki/spaces/SamtrafikenOpenData/pages/4400152638/SIRI-SX+2.0#AffectedStopPoint

If affected stop places are set, no other type of affects should be set

Affects > Networks > AffectedNetwork

Optional

https://samtrafiken.atlassian.net/wiki/spaces/SamtrafikenOpenData/pages/4400152638/SIRI-SX+2.0#AffectedNetwork

If affected networks are set, no other type of affects should be set

Affects > VehicleJourneys > AffectedVehicleJourney

Optional

If affected vehicle journeys are set, no other type of affects should be set

...

Element

Required

Notes

FramedVehicleJourneyRef > DatedVehicleJourneyRef

Required

Reference to ServiceJourney in the static data, for example SE:022:ServiceJourney:1234567The last part of the id must be a number without any other characters.-12345

FramedVehicleJourneyRef > DataFrameRef

Required

Trip start date in YYYY-MM-DD format. Used to match with static data

VehicleJourneyRefs

Forbidden

Not supported. Messages containing one or more references will be rejected to prevent incorrect output.

DatedVehicleJourneyRefs

Forbidden

Not supported. Messages containing one or more references will be rejected to prevent incorrect output.

Route

Optional

Ignored by Samtrafiken - AffectedVehicleJourneys are applied to the entire vehicle journey

...