<info>
實體會指定快訊的詳細資料,建立快訊時至少要有一個 <info>
區塊。如果支援多種語言,建議您為同個 <alert>
實體的每種語言使用一個 <info>
區塊。
info
實體元素
下表描述 <info>
實體的子元素值:
元素名稱 | 選填 | 類型 | CAP 和 Google 的附註和規定 |
---|---|---|---|
<language> |
選擇性 | language |
針對 如果沒有 |
<category> |
必填 | InfoCategory |
<category> 程式碼表示快訊訊息的主旨事件類別。如要為您的活動決定合適的類別,請參閱 OASIS 活動條款清單。正確分類可協助 Google 更準確地向使用者顯示快訊。 |
<event> |
必填 | string |
|
<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 |
將 |
<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>