Set Up a Project in Google Cloud Console
- Access the Google Cloud Console: Once logged in, go to the Google Cloud Console.
- Create a New Project:
- In the top menu, click the Project dropdown (next to the Google Cloud logo).
- Select New Project.
- Enter a name for the project, e.g., “NetSuite Google Maps Integration.”
- Choose the billing account created during sign-up.
- Click Create.
Enable the Required APIs
- Navigate to APIs & Services:
- From the left-hand menu, click on APIs & Services > Library.
- 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:
- For each API, click on it in the search results.
- Click the Enable button to activate the API for the project.
Set Up Billing
- Billing Console:
- Go to the Billing section in the Google Cloud Console.
- Link your billing account to the project.
- 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:
- Go to APIs & Services > Credentials from the left-hand menu.
- Click Create Credentials and select API Key.
- Google will generate an API key for the project.
- Restrict the API Key:
- After generating the key, click on Restrict Key.
- 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.