地震警报
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
针对地震的 CAP 特殊建议
提醒区域
我们的许多发布商都将 <area>
指定为以地震震中为中心的 <circle>
。我们强烈建议您指定半径大于 0 的圆形区域,而不是单个点,因为 Google 公开提醒会向位于 <area>
内的用户展示的范围更广,而向位于 <area>
外的用户展示的范围更小。例如,您的系统可以根据地震的震级或深度,从一组预先确定的半径值中选择一个半径。如果您必须设置半径为零的圆圈,请注意,Google 将不得不改为选择一个非零的定位半径。半径为零的圆圈会被视为空的目标区域,而 Google 公共提醒不支持空的目标区域。
由于许多地震的震中位于偏远或海上位置,因此我们还建议您根据震中距离人口较多或知名度较高的区域的距离和方向来指定 <areaDesc>
元素的值。例如:
<areaDesc>10 km SW of Christchurch</areaDesc>
这样,用户就可以更轻松地使用一个或多个众所周知的参考点来确定地震的位置。
其他参数
请在 CAP 中为您用于帮助公众了解地震强度和烈度的相关信息添加单独的参数。这可能包括地震的震级、强度、深度或起源时间。例如:
<parameter>
<valueName>Magnitude</valueName>
<value>6.1</value>
</parameter>
<parameter>
<valueName>Depth</valueName>
<value>12 km</value>
</parameter>
然后,Google 可以解析其中一些结构化参数,以构建要在 Google 公开提醒中显示的提醒标题或其他字符串。不过,最好还是在 CAP 提醒的 <description>
中以人类可读的语言添加相同的信息。
如果您有震级震源图图片、震中地图图片或其他富媒体资源,并且希望在提醒中显示这些资源,请使用 <resource>
元素指定资源文件的类型和内容。
摇晃强度
以下以英文分号分隔的语法表示地震摇动强度和位置:
<valueName>localMaxIntensity</valueName>
<value>{intensityLevel};{areaDesc};{geocodeName};{geocodeValue};{latitude};{longitude};{schemaNameVer}</value>
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-29。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-29。"],[],["Publishers should specify a non-zero radius for earthquake alert `\u003carea\u003e` in CAP, rather than a single point. Use `\u003careaDesc\u003e` to describe the epicenter's location relative to well-known areas. Include earthquake magnitude, intensity, depth, and origin time as separate `\u003cparameter\u003e` elements and in the `\u003cdescription\u003e`. Utilize the `\u003cresource\u003e` element for rich media like shakemaps. Specify shake intensities and locations using the `\u003cvalueName\u003elocalMaxIntensity\u003c/valueName\u003e` parameter, with a semicolon-separated syntax.\n"]]