Accessing the Google Cloud Console and enabling the APIs

Set Up a Project in Google Cloud Console

  1. In the top menu, click the Project dropdown (next to the Google Cloud logo).
  2. Select New Project.
  3. Enter a name for the project, e.g., “NetSuite Google Maps Integration.”
  4. Choose the billing account created during sign-up.
  5. Click Create.

Enable the Required APIs

  • Navigate to APIs & Services:
  1. From the left-hand menu, click on APIs & Services > Library.
  2. In the search bar, type and enable the following APIs:
  • Distance Matrix API
  • Geocoding API (if address-to-coordinate conversion is required)
  • Enable Each API:
  1. For each API, click on it in the search results.
  2. Click the Enable button to activate the API for the project.

Set Up Billing

  • Billing Console:
  1. Go to the Billing section in the Google Cloud Console.
  2. Link your billing account to the project.
  3. Review the pricing details for the APIs (specifically the Distance Matrix API), to understand the cost structure beyond the free $200 monthly usage.

Cost Estimates:

  • The Distance Matrix API is priced based on the number of elements in the request. One element is one origin-destination pair, and pricing typically starts at $5 per 1000 elements.
  • Monitor usage to ensure it stays within budget by setting alerts in the billing console.

Generate an API Key

  • Create an API Key:
  1. Go to APIs & Services > Credentials from the left-hand menu.
  2. Click Create Credentials and select API Key.
  3. Google will generate an API key for the project.
  • Restrict the API Key:
  1. After generating the key, click on Restrict Key.
  2. Add restrictions such as:
  • IP Address (optional): Limit usage of the API key to specific IP addresses.
  • Referrer: Restrict to a particular referrer (e.g., your NetSuite domain).
  • APIs: Restrict the API key to be used only for the Distance Matrix API and Geocoding API.
  • Save the API Key: This will need for the integration scripts.

Leave a comment

Your email address will not be published. Required fields are marked *