SPATEM
Look for the current version via the link in the table at the message-type introduction page
As of mid november 2024, Mobilidata has changed version regarding AMQP headers (version 0.9 to 1.0). This is caused by changes in the C-Roads (TF4 spec release 2.1.0) specification.
Description
The SPAT message is used to convey the current status of one or more signalized intersections. Along with the MAPEM message the receiver of this message can determine the state of the signal phasing and when the next expected phase will occur.
Data packages are encoded/decoded to ASN.1 standard, using the 'UPER' encoding rules.
See the full structure of this message, with the Dutch Profile status, value range and definition of every field, in the Dutch Profile Message Trees.
Attributes
"Spat": {
...
"Intersections": [
{
"Name": "WO0486-1",
"Id": {
"Region": 4001,
"Id": 171
},
...
},
...
],
...
},
The SPATEM message contains the information about the current status of one or more signalized intersections.
The intersection is identified by the Name and Id attributes.
"Spat": {
...
"Intersections": [
{
...
"Moy": 425469,
"TimeStamp": 26950,
...
},
...
],
...
},
The Moy and TimeStamp attributes are used to determine the time of the message. Moy or Minutes of Year is the number of minutes since the start of the year.
TimeStamp is the time in milliseconds after the Moy.
"Spat": {
...
"Intersections": [
{
...
"States": [
{
"MovementName": "A",
"SignalGroup": 1,
"State_time_speed": [
{
"EventState": 5,
"Timing": {
"StartTime": null,
"MinEndTime": 36001,
"MaxEndTime": 6213,
"LikelyTime": 5690,
"Confidence": null,
"NextTime": null
},
"Speeds": null,
"Regional": null
},
},
...
],
...
},
...
],
...
},
The States attribute contains the information about the state of the signal group. The MovementName and SignalGroup attributes are used to identify the signal group.
The EventState attribute is used to determine the state of the signal group. In Timing the time information is stored. An intersection can receive multiple States. The first state in the this list is the current state, and the other one are predictions of the next states.
EventState overview
| EventState | Description | More info/Example |
|---|---|---|
| 0 | Unavailable | eg. power outage |
| 1 | No signal | eg. outside of operating hours |
| 2 (red) | Stop-then-proceed | stop at stop line and proceed when safe |
| 3 (red) | Stop-and-remain | stop at stop line and do not proceed |
| 4 (green) | Pre-movement | prepare to proceed |
| 5 (green) | Permissive-movement-allowed | proceed, be aware of possible conflicting traffic at intersection |
| 6 (green) | Protected-movement-allowed | proceed, no conflicting traffic expected at intersection |
| 7 (yellow) | Permissive-clearance | prepare to stop and stop if possible, be aware of possible conflicting traffic at intersection |
| 8 (yellow) | Protected-clearance | prepare to stop and stop if possible, no conflicting traffic expected at intersection |
| 9 (yellow) | Caution-conflicting-traffic | proceed with caution, conflicting traffic may be present at the intersection |