MerchantLocation
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
這個類別或物件感興趣的位置。目前,這個位置資訊會用於地理圍欄通知。當使用者位於這個經緯度的指定半徑範圍內,且停留在該範圍內時,Google 就會觸發通知。使用者離開這個半徑範圍後,通知就會隱藏。
JSON 表示法 |
{
"latitude": number,
"longitude": number
} |
欄位 |
latitude |
number
指定介於 -90.0 (含) 到 +90.0 (含) 之間的緯度。超出這些範圍的值會遭拒。
|
longitude |
number
指定介於 -180.0 到 +180.0 (包含頭尾值) 之間的經度。超出這些範圍的值會遭到拒絕。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間: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. |"]]