<info>
實體會指定警報的詳細資料。警示至少需要一個 <info>
區塊。如果您支援多種語言,建議您為同一個 <alert>
實體使用每種語言各一個 <info>
區塊。
info
實體元素
下表說明 <info>
實體的子元素值:
元素名稱 | 選填 | 類型 | CAP 和 Google 附註和規定 |
---|---|---|---|
<language> |
選用 | language |
對於 如果沒有 |
<category> |
必要 | InfoCategory |
<category> 代碼代表快訊主旨事件的類別。如要找出適合事件的類別,請參閱 OASIS 事件術語清單。適當的分類可協助 Google 更準確地向使用者顯示警示。 |
<event> |
必要 | string |
Google 對
|
<responseType> |
選用 | responseType |
如要標示適合目標對象的建議動作類型,建議您在適用情況下使用 |
<urgency> |
必要 | urgency |
請勿為 Google 必須瞭解 建議發布商視個別情況設定 |
<severity> |
必要 | severity |
請勿為 Google 必須瞭解 建議發布商視個別情況設定 |
<certainty> |
必要 | certainty |
請勿為 Google 必須瞭解 建議發布商視個別情況設定 |
<audience> |
選用 | string |
<audience> 元素的值是文字,用於說明快訊的目標對象。 |
<eventCode> |
選用 | string |
其中:
強烈建議您從 OASIS 事件字詞清單中取得
|
<effective> |
選用 | dateTime |
您必須在所有 如果訊息內容適用於多個時區,建議訊息產生者使用世界標準時間,而非當地時間。 範例:
|
<onset> |
選用 | dateTime |
如果 如果訊息內容適用於多個時區,建議訊息產生者使用世界標準時間,而非當地時間。 範例:
|
<expires> |
必填欄位* |
dateTime |
如果您無法為所有快訊設定到期時間,請為沒有 您必須在所有 如果訊息內容適用於多個時區,建議訊息產生者使用世界標準時間,而非當地時間。 範例:
|
<senderName> |
選用 | string |
如果寄件者有可供人類閱讀的名稱, |
<headline> |
選用 | string |
請勿為 |
<description> |
必填欄位* |
string |
建議您提供可供人類閱讀且含有資訊的內容,以回答下列問題:
Google 會使用 您可以使用下列支援的 Markdown 標記: |
<instruction> |
選用 | string |
列出符合警示嚴重程度的動作,且不屬於一般動作。請使用簡潔且區分大小寫的句子,並加入讀者可採取行動的安全性提示,並將最重要的提示放在最前面。
|
<web> |
選用 |
string |
將 <web> 元素連結至可提供快訊更多資訊的有效網址。 |
<contact> |
選用 | string |
|
<parameter> |
選用 | string |
其中:
|
<resource> |
選用 | resource |
|
<area> |
必填欄位* |
area |
強烈建議您使用 |
* Google 要求元素具有粗體紅色 REQUIRED 選填性,但這些元素在 CAP 標準中為選填項目。
範例
<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>