...
The vehicle position for one vehicle is contained in a VehicleActivity
element. The following fields are supported by Samtrafiken. Any fields or attributes not on the list are ignored.
Field | Required | Notes |
---|---|---|
RecoredAtTime | Required | |
MonitoredVehicleJourney > FramedVehicleJourneyRef > DatedVehicleJourneyRef | Required | Should match static data id. |
MonitoredVehicleJourney > FramedVehicleJourneyRef > VehicleRef | Required | An id for this physical vehicle |
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:
|
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
|
Example
The following example shows what SIRI-VM data delivered to Samtrafiken can look like. Note that there are multiple fields which are not interpreted by Samtrafiken (see table above regarding which fields are required)
...