MerchantLocation
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
此类或对象感兴趣的地理位置。目前,此位置信息用于地理围栏通知。当用户位于此经纬度设置的半径范围内且逗留在该区域时,Google 会触发通知。当用户离开此半径范围时,系统会隐藏通知。
JSON 表示法 |
{
"latitude": number,
"longitude": number
} |
字段 |
latitude |
number
纬度,可指定为 -90.0 到 +90.0 范围内的任意值(含两个端点)。超出此范围的值将被拒绝。
|
longitude |
number
经度,可指定为 -180.0 到 +180.0 范围内的任意值(含两个端点)。超出此范围的值将被拒绝。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[],[],null,["# MerchantLocation\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nLocations of interest for this class or object. Currently, this location is used for geofenced notifications. When a user is within a set radius of this lat/long, and dwells there, Google will trigger a notification. When a user exits this radius, the notification will be hidden.\n\n| JSON representation |\n|-----------------------------------------------------|\n| ``` { \"latitude\": number, \"longitude\": number } ``` |\n\n| Fields ||\n|-------------|-------------------------------------------------------------------------------------------------------------------------------------------------|\n| `latitude` | `number` The latitude specified as any value in the range of -90.0 through +90.0, both inclusive. Values outside these bounds will be rejected. |\n| `longitude` | `number` The longitude specified in the range -180.0 through +180.0, both inclusive. Values outside these bounds will be rejected. |"]]