Google Map API Configuration

How to Get Google Maps API Key

Follow the steps below to create and configure Google Maps API keys as per your requirements:

1. Google Maps API Key (with HTTP Restriction)

  1. Go to the Google Cloud Console and log in with your account.
  2. Select an existing project or create a new one.
  3. Navigate to APIs & Services > Credentials.
  4. Click Create Credentials and select API Key.
  5. After generating the key, click on the newly created key and go to the Restrictions section.
  6. Choose HTTP referrers (websites) under Application Restrictions.
  7. Add your allowed website URLs (e.g., https://yourdomain.com/*).
  8. Save the changes and copy the API key for use in your application.

2. Google Maps API Key (with IP Restriction)

  1. Follow the steps from 1.1 to 1.5.
  2. In the Application Restrictions section, choose IP addresses.
  3. Add the allowed server IP addresses (e.g., 192.168.1.1, 123.456.789.0).
  4. Save the changes and copy the API key.

3. Google Maps API Key (with No IP/HTTP Restriction)

  1. Follow the steps from 1.1 to 1.4.
  2. After generating the key, leave the Application Restrictions section as None.
  3. Save the changes and copy the API key.

Note: It is highly recommended to use HTTP or IP restrictions to secure your API keys from unauthorized usage.