總覽
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
引言
Places SDK for iOS 可讓您建立位置辨識應用程式,以因應當地商家和裝置附近的其他地點。也就是說,您可以根據使用者偏好的地點建構內容豐富的應用程式。
概念
「地點」的定義是具有名稱的實體空間。另一個思考地點的方法,就是在地圖上找到的任何資訊。
例如當地商家、搜尋點和地理位置。在 API 中,地點會以 GMSPlace Class Reference
表示。包含地點名稱、地址、地理位置、地點 ID、電話號碼、地點類型、網站網址等資訊。
API 總覽
協助客戶探索所在地和周遭環境:
- 目前地點會傳回使用者裝置最後已知的地點清單,並顯示每個地點的相對可能機率。
- 地點自動完成功能會在使用者輸入資料時,自動填入地點的名稱和/或地址。
- 地點相片會傳回地點的高畫質圖片。
- 地點詳細資料:傳回並顯示地點的詳細資訊。
- 地點 ID 會儲存一或多個地點的專屬 ID,以便視需求擷取地點資訊。
其他 API 重點包括:
- 透過低功率掃描 Wi-Fi 準確偵測位置。
- 裝置端快取:大多數針對 Places SDK for iOS 的要求都可能會往返 Google 伺服器,但您可以在本機快取資料 30 天。
政策與條款
凡是使用 Places SDK for iOS 的應用程式,都必須遵守《Google 地圖平台服務條款》和《顯示出處》一文中的規定。
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-02-02 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"缺少我需要的資訊"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"過於複雜/步驟過多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"過時"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻譯問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/程式碼問題"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"容易理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"確實解決了我的問題"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]