iOS 版 Places Swift SDK
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
Places Swift SDK for iOS 提供 Places SDK for iOS SDK 的 Swift 優先版本。Places Swift SDK for iOS 提供與 Places SDK for iOS 相同的所有功能,並直接以 Swift 實作,因此具備許多額外優勢。這些優點運用了 Swift 的獨特特質,因此有助於編寫更慣用的 Swift 程式碼。
Places Swift SDK 的主要功能包括:
iOS 適用的 Places Swift SDK 僅適用於 Places SDK for iOS (新版) API,其中包含下列產品:
從 Places SDK for iOS 遷移至 Places Swift SDK for iOS
Places Swift SDK for iOS 程式碼可與舊版實作項目並行運作,因此您可以逐步完成遷移作業。
如要瞭解詳情及如何遷移至新版 SDK,請參閱遷移指南。
後續步驟
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-22 (世界標準時間)。
[null,null,["上次更新時間:2025-08-22 (世界標準時間)。"],[[["Places Swift SDK for iOS (Preview) offers a Swift-native experience with benefits like value types, default parameters, optionals, concurrency support, and improved type safety, built upon the existing Places SDK for iOS."],["It's currently in preview mode and exclusively available for new Places SDK for iOS APIs, including Place Autocomplete, Details, Photos, Text Search, and Nearby Search."],["Migration from the existing Places SDK for iOS can be done incrementally as the new Swift SDK works alongside older implementations."],["The GitHub URL for Places Swift SDK for iOS (Preview) has been updated to \u003chttps://github.com/googlemaps/ios-places-sdk\u003e, replacing the previous URL."]]],[]]