The <info>
entity specifies the alert's details. At least one <info>
block
is required for an alert. If you support multiple languages, we recommend that
you use one <info>
block for each language for the same <alert>
entity.
info
entity elements
The following table describes the sub-element values for the <info>
entity:
Element name | Optionality | Type | CAP and Google notes and requirements |
---|---|---|---|
<language> |
OPTIONAL | language |
For the If the |
<category> |
REQUIRED | InfoCategory |
The <category> code denotes the category of the
subject event of the alert message. To identify the right categories for
your events, refer to the
OASIS Event Terms List. Proper categorization can
help Google surface the alert more accurately to users. |
<event> |
REQUIRED | string |
The Google requirements for the
|
<responseType> |
OPTIONAL | responseType |
To denote the type of action recommended for the correct audience, when
applicable, we strongly recommend a |
<urgency> |
REQUIRED | urgency |
Don't use the value Unknown for the It's important for Google to know how the Preferably, the publisher sets the |
<severity> |
REQUIRED | severity |
Don't use the value Unknown for the It's important for Google to know how the Preferably, the publisher sets the |
<certainty> |
REQUIRED | certainty |
Don't use the value Unknown for the It's important for Google to know how the
Preferably, the publisher sets the |
<audience> |
OPTIONAL | string |
The value of the <audience> element is text that
describes the intended audience of the alert message. |
<eventCode> |
OPTIONAL | string |
The
where:
Multiple instances of We strongly recommend that you get the
|
<effective> |
OPTIONAL | dateTime |
The value of the You must include time zone fields in all When the content of a message applies across multiple time zones, we recommend that the message producer uses UTC times in preference to local times. Example:
|
<onset> |
OPTIONAL | dateTime |
The value of the If the location cited in the When the content of a message applies across multiple time zones, we recommend that the message producer uses UTC times in preference to local times. Example:
|
<expires> |
REQUIRED* |
dateTime |
The value of the If you can't set an expiry time for all your alerts, provide Google
with a default expiry time for any alerts that don't have an
You must include time zone fields in all When the content of a message applies across multiple time zones, we recommend that the message producer uses UTC times in preference to local times. Example:
|
<senderName> |
OPTIONAL | string |
A When the sender has a human-readable name, the |
<headline> |
OPTIONAL | string |
Make the length of A Don't use the same values for the |
<description> |
REQUIRED* |
string |
The value of the We recommend human-readable and informative content that answers these questions:
Google uses the You can use these supported Markdown tags:
|
<instruction> |
OPTIONAL | string |
The value of the List actions that fit the level of the alert severity and that aren't general. Use succinct, case-sensitive sentences and include safety tips that readers can act on, with the most important tip first. The |
<web> |
REQUIRED* |
string |
Link the |
<contact> |
OPTIONAL | string |
The |
<parameter> |
OPTIONAL | string |
The
where:
Multiple instances of a |
<resource> |
OPTIONAL | resource |
The |
<area> |
REQUIRED* |
area |
The We strongly recommend the use of a |
* Google requires elements that have a bold and red REQUIRED optionality, but those elements are optional in the CAP standard.
Example
<info>
<language>en-CA</language>
<category>Met</category>
<event>blowing snow</event>
<responseType>Monitor</responseType>
<urgency>Future</urgency>
<severity>Moderate</severity>
<certainty>Possible</certainty>
<audience>general public</audience>
<eventCode>
<valueName>profile:CAP-CP:Event:0.4</valueName>
<value>blowingSnow</value>
</eventCode>
<effective>2023-04-13T23:16:53-00:00</effective>
<expires>2023-04-14T15:11:38-00:00</expires>
<senderName>Environment Canada</senderName>
<headline>blowing snow advisory in effect</headline>
<description>
Periods of poor visibility in blowing snow.
When: Tonight through this weekend.
Impacts: Poor visibility due to blowing snow.
Remarks: Strong easterly winds are expected to continue through the
Richardson Mountains through at least this weekend. Gusty northeasterly
winds are also possible near the Ogilvie Mountains during the same
timeframe. These strong winds will likely generate periods of blowing
snow through the mountain passes and visibility will at times be
significantly reduced.
</description>
<instruction>Be prepared to adjust your driving with changing road
conditions.</instruction>
<web>http://weather.gc.ca/warnings/index_e.html?prov=yt</web>
<area>
<areaDesc>Dempster</areaDesc>
<polygon>65.4581,-137.8443 64.3417,-137.8311 64.3385,
-137.911 64.3497,-138.0022 64.415,-138.4948 64.5198,-138.9891 65.53,
-139.0095 66.6721,-137.1316 67.0102,-136.6048 67.1424,
-136.3737 67.2766,-136.136 67.2657,-135.9251 67.1757,-136.0889 67.0,
-136.012 67.0,-135.9999 67.0133,-135.4962 67.0,-134.9833 65.4581,
-137.8443</polygon>
<geocode>
<valueName>layer:EC-MSC-SMC:1.0:CLC</valueName>
<value>093100</value>
</geocode>
<geocode>
<valueName>profile:CAP-CP:Location:0.3</valueName>
<value>6001045</value>
</geocode>
</area>
</info>