How to configure Google Map Platform?

3 minutes read

With the Maps SDK for Android, you can add maps based on Google Maps data to your application. The API automatically handles access to Google Maps servers, data downloading, map display, and response to map gestures. You can also use API calls to add markers, polygons, and overlays to a basic map, and to change the user's view of a particular map area. These objects provide additional information for map locations, and allow user interaction with the map.

Step by step

Follow the below steps

  • First of all , you have to create project in Google Map Platform.

  • To use Google Maps Platform, you must have a billing account. The billing account is used to track costs associated with your projects. Make sure you understand how the billing account credits work.

  • You have to follow below steps for creating billing account in Google console

    • Go to the Google Cloud Platform Console.

    • Click the menu button and select Billing.

    • Set up your billing account.

    • To create billing account , follow given instructions

      • If this is your first billing account, on the Billing page:

        • Click the Add billing account button

        • Follow the steps to set up your first billing account

      • If you already have a billing account, on the Billing page:

        • Click the billing drop-down and select Manage billing accounts.You'll see a list of your current billing accounts.

        • Select Create account.

        • Follow the instructions to set up your next billing account.

      Note

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

  • To use Google Maps Platform, you must have a project. The project is the basis for managing services, credentials, billing, APIs, and SDKs. Usage costs associated with the project will be charged to the billing account linked to the project.

  • You have to follow below steps to create a project

    • Go to the Google Cloud Platform Console.

    • Click the menu button and select Home.

    • Click the project drop-down and select NEW PROJECT.

    • On the New Project page, fill in the required information.

      • Project name: Accept the default or enter a customized name

        • The project name can be changed at any time

      • Project ID: Accept the default or click EDIT to enter a customized ID

        • The project ID cannot be changed after the project is created, so choose an ID that you'll be comfortable using for the lifetime of the project.

      • Billing account: Select a billing account for the project (if you only have one billing account, you won't see this option).

        • You must be a Billing Account Administrator or Project Billing Manager to associate a project with a billing account. For more information, see Overview of Billing roles in IAM.

      • Location: If you have an organization you want to link your project to, click Browse and select it, otherwise choose "No organization"

      • Click CREATE

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

  • To enable one or more APIs or SDKs

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

    • Click the API or SDK you want to enable.

      • If the button says ENABLE, click the button to enable the API or SDK

      • If the button says MANAGE, 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 the DISABLE button to remove the API or SDK from this project.)

  • This step walks you through getting an API key, adding it to your application, and restricting the API key so that it can only be used with your app.

    To use Google Maps Platform, you must have an API key. The API key is added to all of your requests and applications. We strongly recommended that you restrict your API key

  • To get, add, and restrict an API key

    • Go to the APIs & Services > Credentials page Go to Credential Page.

    • On the Credentials page, click Create credentials > API key.
      The API key created dialog displays your newly created API key.

    • Click Close

Was this article helpful?