Versions Compared

Key

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

...

Field

Required

Notes

RecordedAtTime

Required

ValidUntilTime

Required

Ignored by Samtrafiken

MonitoredVehicleJourney > LineRef

Required

Reference to Line in the static data, for example SE:022:Line:1234

MonitoredVehicleJourney > VehicleRef

Required

A unique id for the physical vehicle. If the static data contains this vehicle, then the id should match the static data. The value should be a positive number.

MonitoredVehicleJourney > FramedVehicleJourneyRef > DatedVehicleJourneyRef

Required

Reference to ServiceJourney in the static data, for example SE:022:ServiceJourney:1234567-12345

MonitoredVehicleJourney > FramedVehicleJourneyRef > DataFrameRef

Required

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

MonitoredVehicleJourney > VehicleLocation > Latitude

Required

Northing coordinate, WGS84

MonitoredVehicleJourney > VehicleLocation > Longitude

Required

Easting coordinate, WGS84

MonitoredVehicleJourney > VehicleLocation[SrsName]

Optional

WGS84 when unspecified. WGS84 is recommended since this avoids possible loss of resolution during conversion.

Valid values:

  • WGS84

  • 4326

  • SWEREF99TM

  • RT90

MonitoredVehicleJourney > Bearing

Optional

Compass bearing in degrees (0-359.99), rounded down to the nearest integer by Samtrafiken.

MonitoredVehicleJourney > Velocity

Optional

Speed, in kilometers per hour, rounded down to the nearest integer by Samtrafiken..

MonitoredVehicleJourney > Occupancy

Optional

Realtime occupancy. One of

  • full

  • standingAvailable

  • seatsAvailable

MonitoredVehicleJourney > Delay

Required

Ignored by Samtrafiken, Samtrafiken reads delays from SIRI-ET streams.

Required in order to adhere to the Nordic SIRI profile. Duration which can be negative if the vehicle is early. PT0S when there are no delays.

...