Getting started with Google Maps Platform

This page goes through the basic, required steps to start using any of the APIs and SDKs on Google Maps Platform.

Quickstart

If you haveneverused the Google Cloud Console to create a billing account or a project, click theGet Startedbutton that links to an interactive setup experience in the Cloud Console for new users:

Get Started

Alternatively, you can also complete the required setup steps by clicking through the following tabs:

Step 1

Console

  1. In the Google Cloud Console, on the project selector page, click Create Projectto begin creating a new Cloud project.

    Go to the project selector page

  2. Make sure that billing is enabled for your Cloud project. Confirm that billing is enabled for your project.

    Google Cloud offers a $0.00 charge trial. The trial expires at either end of 90 days or after the account has accrued $300 worth of charges, whichever comes first. Cancel anytime. Google Maps Platform features a recurring $200 monthly credit. For more information, see Billing account creditsandBilling.

Cloud SDK

gcloud projects create "PROJECT"

Read more about the Google Cloud SDK , Cloud SDK installation ,and the following commands:

Step 2

To use Google Maps Platform, you must enable the APIs or SDKs you plan to use with your project.

Note that some integrations require you to enable multiple APIs/SDKs. If you are not sure which APIs or SDKs to enable, try using theAPI Picker,or consult the documentation for the API/SDK you want to use.

To enable one or more APIs or SDKs:

Console

  1. See the Google Maps Platform APIs and SDKs that you can enable by going to the Maps API Library page in the Cloud Console:

    Go to theMaps API Library page

  2. Click the API or SDK you want to enable.
    • If the button saysENABLE,click the button to enable the API or SDK.
    • If the button saysMANAGE,the API or SDK is already enabled and you don't need to do anything further.
    • Clicking either button will display the dashboard for the API or SDK. (Click theDISABLEbutton to remove the API or SDK from this project.)

Cloud SDK

gcloud services enable \
--project "PROJECT"\
"directions-backend.googleapis "\
"distance-matrix-backend.googleapis "\
"addressvalidation.googleapis "\
"tileaerialview.googleapis "\
"airquality.googleapis "\
"solar.googleapis "\
"elevation-backend.googleapis "\
"routes.googleapis "\
"geocoding-backend.googleapis "\
"geolocation.googleapis "\
"maps-android-backend.googleapis "\
"maps-backend.googleapis "\
"maps-embed-backend.googleapis "\
"maps-ios-backend.googleapis "\
"places-backend.googleapis "\
"pollen.googleapis "\
"roads.googleapis "\
"routeoptimization.googleapis "\
"static-maps-backend.googleapis "\
"street-view-image-backend.googleapis "\
"timezone-backend.googleapis "

Read more about the Google Cloud SDK , Cloud SDK installation ,and the following commands:

Step 3

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-specificUsing API Keyspage.

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:

Console

  1. Go to theGoogle Maps Platform > Credentialspage.

    Go to the Credentials page

  2. On theCredentialspage, clickCreate credentials > API key.
    TheAPI key createddialog displays your newly created API key.
  3. ClickClose.
    The new API key is listed on theCredentialspage underAPI keys.
    (Remember torestrict the API key before using it in production.)

Cloud SDK

gcloud Alpha services api-keys create \
--project "PROJECT"\
--display-name"DISPLAY_NAME"

Read more about the Google Cloud SDK , Cloud SDK installation ,and the following commands:

Billing Account Credits

Once you have created a billing account and project you are eligible for the Google Cloud Platform $300 no-charge trial and Google Maps Platform recurring $200 monthly credit. To learn more, see Billing Account Credits.

Next steps

Once you are set up, you can begin using the Google Maps Platform APIs and SDKs. To learn more, see the Overview, Developer, and Get Started guides for the API or SDK you are interested in. The APIs and SDKs are listed at Google Maps Platform Documentation (by product)andGoogle Maps Platform APIs (by platform).