หากต้องการเรียกใช้เดโม คุณต้องมีบัญชี Google Cloud และเปิดใช้คีย์ API สําหรับ Navigation SDK โดยฝ่ายขาย เมื่อคุณมีบัญชี Google Cloud แล้ว โปรดดูตั้งค่าโปรเจ็กต์การพัฒนาและคีย์ API
ตั้งค่าโปรเจ็กต์การพัฒนาและคีย์ API
สร้างหรือเปิดโปรเจ็กต์ในคอนโซล Google Cloud เพื่อใช้กับ Maps SDK สําหรับ iOS รอสักครู่จนกว่าโปรเจ็กต์จะปรากฏในคอนโซลระบบคลาวด์
เปิดใช้ Maps SDK สำหรับ iOS ในคอนโซล Google Cloud
ในโปรเจ็กต์ ให้เปิดส่วน API และเปิดใช้ Maps SDK สําหรับ iOS
สร้างคีย์ API สําหรับโปรเจ็กต์โดยเลือกAPI และบริการ >
ข้อมูลเข้าสู่ระบบ > สร้างข้อมูลเข้าสู่ระบบ > คีย์ API
เพิ่ม Maps SDK สำหรับ iOS ลงในคีย์ API ดูข้อมูลเพิ่มเติมได้ที่การใช้คีย์ API
[null,null,["อัปเดตล่าสุด 2025-02-25 UTC"],[[["The Navigation SDK provides turn-by-turn navigation functionality and requires a Google Cloud account with an API key enabled for the SDK."],["You must have the Maps SDK for iOS installed in your app before integrating the Navigation SDK."],["To try the demo app, download it as a Cocoapod, add your API key, and build the app in Xcode using a compatible iOS device or simulator."],["Xcode 12 users might encounter compilation issues for the simulator which can be resolved using steps outlined in the Navigation SDK FAQ."],["For troubleshooting, use an iOS device or simulator with iOS 15 or above, enable Rosetta destinations if necessary, and disable User Script Sandboxing if encountering build failures related to rsync.samba()."]]],["The Navigation SDK requires a Google Cloud account and an API key enabled by sales. Setup involves creating a project in the Google Cloud console, enabling the Maps SDK for iOS, and generating an API key. The Maps SDK must be installed alongside the Navigation SDK. Demo code is available on GitHub in Swift and Objective-C. To run the demo, Xcode must be installed, and the API key added to the `SDKDemoAPIKey` file. Run the app using an iOS device or simulator, ensuring iOS 15 or above.\n"]]