Mapping between Situation and General Message "France"

When Ara collects or broadcasts Situations using a General Message "France" (as defined by https://normes.transport.data.gouv.fr/normes/siri/profil-france/#cas-de-la-compatibilit%C3%A9-avec-le-service-general-message-du-profil-siri-ile-de-france) the following mapping is performed:

GM Content

SX Content

RecordedAtTime

CreationTime

ItemIdentifier

ignored

InfoMessageIdentifier

SituationNumber

InfoMessageVersion

Version

InfoChannelRef

When a Situation is created from a GM:

Keywords

  • = Perturbation/Information/Commercial

ReportType

  • = incident if Perturbation

  • = general

When a GM is created from a situation:

  • InfoChannelRef = Perturbation/Information/Commercial if one of the keywords as this value

  • if no keyword matches, InfoChannelRef = Perturbation if ReportType = incident else InfoChannelRef = Information

 

ValidityPeriods[0]/StartTime

= CreationTime when created

ValidUntilTime

ValidityPeriods[0]/EndTime

LineRef

Affects/AffectedLine

StopPointRef

Affects/AffectedStopArea

JourneyPatternRef

ignored (not defined in the French Profile)

DestinationRef

Affects/AffectedLine/AffectedDestination

associated to with AffectedLine created by a GM LineRef, ignored if none or several LineRefs are defined in the GM payload

RouteRef

Affects/AffectedLine/AffectedRoute

associated to with AffectedLine created by a GM LineRef, ignored if none or several LineRefs are defined in the GM payload

GroupOfLinesRef

ignored (not defined in the French Profile)

LineSection/LineRef

LineSection/FirstStop

LineSection/LastStop

Affects/AffectedLine/AffectedSection

MessageType

MessageText

When a Situation is created from a GM:

According to MessageType, MessageText is stored as

  • shortMessage: Summary

  • longMessage/textOnly/formattedText/HTML/RTF: Description

Any HTML tag is sanitized (= removed)

When a GM is created from a Situation:

  • a shortMessage Message is created with Summary (if defined)

  • a textOnly Message is created with Description (if defined)