How to generate a Google Map API key: Difference between revisions

From Aspire Digital Solutions Software
Jump to navigation Jump to search
No edit summary
m (Protected "How to generate a Google Map API key" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(3 intermediate revisions by the same user not shown)
Line 10: Line 10:


'''A.''' Creating a new project:
'''A.''' Creating a new project:
'''1.''' Click on Create Project (above screenshot).
'''1.''' Click on Create Project (above screenshot).


Line 27: Line 28:




'''5.''' Copy the API key and click on "Go to Google Maps Platform".
'''5.''' Copy the API key and keep it safe. Click on "Go to Google Maps Platform."


[[File:Copy-api-key.png|400px]]
[[File:Copy-api-key.png|400px]]




Enable the Google Maps JavaScript API for your project.
'''6.''' Enable Geocoding and Places API (if not enabled).
 
[[File:Enable-apis.png|400px]]
 


Create an API key for your project.
All set!!


Restrict the API key if desired for added security.
Now, use the copied API key wherever needed.


Use the API key in your Google Maps application.


For more detailed instructions and guidance, you can refer to the Google Maps Platform documentation.
For more detailed instructions and guidance, you can refer to the Google Maps Platform documentation.

Latest revision as of 10:56, 28 July 2023

To generate a Google Maps API key, follow these steps:

Go to the Google Cloud Console (console.cloud.google.com).

Create a new project or select an existing one.

Google-cloud-console.png


A. Creating a new project:

1. Click on Create Project (above screenshot).

2. Enter details and click on Create.

Create-new-project.png


3. Select project if prompted.

Select-project.png


4. Select Billing Account if prompted.

Select-billing-account.png


5. Copy the API key and keep it safe. Click on "Go to Google Maps Platform."

Copy-api-key.png


6. Enable Geocoding and Places API (if not enabled).

Enable-apis.png


All set!!

Now, use the copied API key wherever needed.


For more detailed instructions and guidance, you can refer to the Google Maps Platform documentation.