Go to the Google Cloud Console
How to generate and restrict API video link

New Project

Create New Project

Select Project

Enable API and services

APIs to Enable for Google Maps:
Maps JavaScript API – For displaying interactive maps
Geocoding API – To convert addresses into coordinates and vice versa
Places API – For location search, autocomplete, and place details
Directions API – To show routes and calculate directions
Distance Matrix API – For calculating travel distance and time
Maps Static API – For generating static map images
Maps Embed API – To embed maps with limited customization
Time Zone API – To fetch time zone data by location

Enable service

Get Credentials

Create Credentials




Create API Key
