Take a look at the Templates and which payload properties are required for each Template.
{
"id": "node",
"shape": {
"type": "operation",
"scale": 1
},
"payload": {
"status": "red", // red, yellow, green
"label": "VU Schwer",
"location": "Kaiserwörthdamm 1\n67065 Ludwigshafen am Rhein",
"affected_persons": "2",
"affected_objects": "3",
"tags": ["Autobahn", "Brücke"]
}
}
{
"id": "node",
"shape": {
"type": "emergency-reporter",
"scale": 1
},
"payload": {
"name": {
"first": "Maximilian",
"last": "Mustermann"
},
"pending": false, // searching indicator
"location": "Kaiserwörthdamm 1\n67065 Ludwigshafen am Rhein",
"category": "automatic-system",
"label": "police-department",
"callback_number": "123"
}
}
The category
parameter has multiple options and will be represented in the tag color.
Category | Color |
---|---|
ambulance | #4db6ac |
police-department | #81c784 |
fire-department | #e57373 |
control-center | #ffb74d |
automatic-system | #9575cd |
civilian | #4fc3f7 |
{
"id": "node",
"shape": {
"type": "affected-person",
"scale": 1
},
"payload": {
"status": "red", // red, yellow, green
"name": {
"first": "Maximilian",
"last": "Mustermann"
},
"sex": "Männlich",
"age": "42",
"accessibility": "Exponierte Lage",
"tags": ["bewusstlos", "Verletzung: Kopf", "Puls: schwach", "Diabetes", "atmend"]
}
}
{
"id": "node",
"shape": {
"type": "affected-object",
"scale": 1
},
"payload": {
"status": "red", // red, yellow, green
"label": "Rathaus Ludwigshafen",
"accessibility": "Versperrtes Gelände",
"tags": ["Öffentliches Gebäude"]
}
}
{
"id": "node",
"shape": {
"type": "emergency-action",
"scale": 1
},
"payload": {
"category": "ambulance",
"status": "scheduled", // scheduled, in-progress, completed
"label": "Transport",
"priority": "mit O2",
"tags": ["liegend", "Sonderrechte Ziel", "Winterberg KH", "Monitor", "mit Bearmung"]
}
}
The category
parameter has multiple options and will be represented in the banner color.
Category | Color |
---|---|
ambulance | #4db6ac |
emergency-rescue | #9575cd |
fire-department | #e57373 |
The status
parameter has multiple options as well. It will be represented as a status icon
Status | Icon |
---|---|
scheduled | |
in-progress | |
completed |
{
"id": "node",
"shape": {
"type": "emergency-ressource",
"scale": 1
},
"payload": {
"status": "1", // 0 - 8
"label": "11/83-02",
"time_label": "bräuchte ca. 9 Minuten",
"alerted": true
}
}
The emergency-ressource
knows predefined status
values and will be represented in the status color. This table shows them all and their meaning.