Travel alerts — schema
Current road blockages, social conflicts and advisories. Run daily.
| Response key | Field group | Shape |
| alerts | alert |
array of objects |
Fields
| Group | Key | Type | Target field | Maps owns | |
| alert |
title |
string |
title |
— |
edit |
| alert |
kind |
string |
kind |
— |
edit |
| alert |
severity |
string |
severity |
— |
edit |
| alert |
description |
string |
description |
— |
edit |
| alert |
location |
string |
location |
— |
edit |
| alert |
active |
boolean |
active |
— |
edit |
| alert |
as_of |
string |
as_of |
— |
edit |
| alert |
source_url |
string |
source_url |
— |
edit |
Assembled JSON schema
{
"type": "object",
"properties": {
"alerts": {
"type": "array",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "Short headline of the condition."
},
"kind": {
"type": "string",
"enum": [
"road_block",
"conflict",
"advisory"
],
"description": "What kind of disruption this is."
},
"severity": {
"type": "string",
"enum": [
"info",
"warning",
"critical"
],
"description": "How badly it affects travel."
},
"description": {
"type": "string",
"description": "What is happening, in Spanish."
},
"location": {
"type": "string",
"description": "Road, town or area affected."
},
"active": {
"type": "boolean",
"description": "Whether it is in force right now."
},
"as_of": {
"type": "string",
"description": "ISO date (YYYY-MM-DD) the information is from."
},
"source_url": {
"type": "string",
"description": "URL backing the claim."
}
},
"required": [
"title",
"kind",
"severity",
"description",
"location",
"active",
"as_of",
"source_url"
],
"additionalProperties": false
}
}
},
"required": [
"alerts"
],
"additionalProperties": false
}