The Navigation SDK is available as a static library. For more information, see the Navigation SDK reference documentation.
Before you begin
To run the demo, you must have a Google Cloud account and an API key enabled for the Navigation SDK by sales. Once you have a Google Cloud account, see Set up your development project and API key.
Set up your development project and API key
Create or open a project in the Google Cloud Console to use with the Maps SDK for iOS. Wait for a few minutes until the project is visible on the Cloud Console.
Enable Maps SDK for iOS in the Google Cloud Console. In the project, open the APIs section and enable the Maps SDK for iOS.
Create an API key for the project, by selecting APIs & Services > Credentials > Create credentials > API key.
Request provisioning of the Maps SDK for iOS through your Google Maps Platform representative. You need to provide your project ID, which you can find in the Cloud Console main dashboard, under the project name.
Try the demo app
You can now download, build, and run the demo.
Download the demo
Download the demo as a Cocoapod:
pod try GoogleNavigation
Build and run the demo
Follow these steps to build and run the demo app:
- Install Xcode.
- Extract the zip file.
Copy the following frameworks into the root directory for the demo you want to run (the same directory that contains
NavigationDemoObjC.xcodeproj
orNavigationDemoSwift.xcodeproj
):GoogleMaps.framework
GoogleMapsBase.framework
GoogleMapsCore.framework
GoogleNavigation.framework
In Xcode, open the demo app of your choice:
NavigationDemoObjC/NavigationDemoObjC.xcodeproj
NavigationDemoSwift/NavigationDemoSwift.xcodeproj
Add your own API key to the
SDKDemoAPIKey
file. You must use the API key that you created in the steps in Set up your development project and API key.To run the demo, connect an iOS device to your computer, or use the simulator.