Before you can use the Google Maps on iOS, you must have a billing account with at least one project, and the Maps SDK for iOS must be enabled. You also need to have some software installed.
Setting up your Google Maps Platform account
If you have previously worked with the Google Maps Platform, you may have already performed one or more of these steps.
In the Google Cloud Console, on the project selector page, click Create Project to begin creating a new Cloud project.
Make sure that billing is enabled for your Cloud project. Confirm that billing is enabled for your project.
gcloud projects create "PROJECT"
To use Google Maps Platform, you must enable the APIs or SDKs you plan to use with your project.
gcloud services enable \ --project "PROJECT" \ "maps-ios-backend.googleapis.com"
This step only goes through the API Key creation process. If you use your API Key in production, we strongly recommend that you restrict your API key. You can find more information in the product-specific Using API Keys page.
The API key is a unique identifier that authenticates requests associated with your project for usage and billing purposes. You must have at least one API key associated with your project.
To create an API key:
Go to the Google Maps Platform > Credentials page.
On the Credentials page, click Create credentials > API key.
The API key created dialog displays your newly created API key.
The new API key is listed on the Credentials page under API keys.
(Remember to restrict the API key before using it in production.)
gcloud alpha services api-keys create \ --project "PROJECT" \ --display-name "DISPLAY_NAME"
Installing required software
To build a project using the Maps SDK for iOS, you need to download and install:
Now you're ready to get, add, and restrict a free API key to your app.