您可以使用 Maps SDK for iOS,在應用程式中加入以 Google 地圖資料為基礎的地圖。SDK 會自動處理對 Google 地圖伺服器的存取權、地圖顯示,以及對使用者手勢 (例如點擊和拖曳) 的回應。您也可以在地圖中加入標記、多邊形、地面疊加層和資訊視窗。這些物件可為地圖位置提供額外資訊,並讓使用者與地圖互動。
使用 SDK 時,您必須遵守 Google 地圖平台服務條款,並確保應用程式遵守適用法律。請注意,使用 SDK 時,系統會在每次要求中自動傳送應用程式名稱和版本、驗證資訊,以及跨應用程式匿名 ID。
目標對象
這份概念說明文件適用於熟悉 iOS 開發和以物件為導向的程式設計概念的使用者。您也應從使用者的角度熟悉 Google 地圖。這項指南旨在讓您開始探索並使用 Maps SDK for iOS 開發應用程式。您也可以參閱參考文件,瞭解類別和方法的具體細節。
作者資訊相關規定
如果您在應用程式中使用 Maps SDK for iOS,則必須在應用程式的法律聲明部分加入歸屬文字。建議您將法律聲明設為獨立的選單項目,或設為「關於」選單項目的一部分。
[null,null,["上次更新時間:2025-01-14 (世界標準時間)。"],[[["The Maps SDK for iOS allows you to integrate Google Maps into your iOS application, enabling features like markers, polylines, and ground overlays for enhanced user interaction."],["You must comply with the Google Maps Platform Terms of Service and display attribution text within your application when using the SDK."],["The SDK supports native 64-bit iOS devices running iOS 14.0 and later, requiring Xcode 15.0 or higher for development."],["To get started, you need a Google Cloud project with billing enabled and the Maps SDK for iOS activated."],["Familiarity with iOS development, object-oriented programming, and Google Maps from a user perspective is recommended."]]],["To use the Maps SDK for iOS, set up a Google Cloud project with a billing account and the SDK enabled. The SDK allows adding Google Maps to iOS apps, handling map display and user interactions. Developers must comply with Google Maps Platform Terms of Service and include attribution text via `[GMSServices openSourceLicenseInfo]`. Apps require iOS 14.0+ and Xcode 15.0+. Note that app extensions and multi-window use may be problematic, and Google Maps must be installed for Maps URLs to work.\n"]]