Skip to content
English
  • There are no suggestions because the search field is empty.

Connect Your Google API Account

Create a Google API account and connect it to Intuitive Shipping to set up distance-based conditions and rate calculations.

Intuitive Shipping uses Google Routes (formerly Distance) and Geocoding APIs to calculate distance-based shipping rates and apply distance conditions. To set up a Local delivery shipping method that calculates rates based on the distance between your shipping origin and the customer’s address, or to use a delivery distance condition in a Scenario to control when a shipping method activates, you’ll need to create a Google API account with both Routes and Geocoding APIs, then connect it to Intuitive Shipping.

KB Technical Support NewA Google API account is required to set up a Local delivery shipping method or to use delivery distance conditions in a Scenario.

 

 

How It Works

KB Knowledge

All costs shown are in US dollars (USD).

Each time Intuitive Shipping checks a delivery distance condition or calculates a distance-based shipping rate for local delivery, it sends an API request to Google using your Routes API (formerly the Distance API). If no information is returned, a second request is sent using your Geocoding API.

That means Intuitive Shipping will make at least one and sometimes two API requests per distance check.

The Routes API works about 75% of the time on its own.

Both APIs cost $5.00 per 1000 requests per month. Google provides $200.00 in free usage credit each month, which covers at least 20,000 - but typically up to 30,000 to 40,000 - distance-based calculations before charges apply.

Here’s how it works:

  • $200.00 credit = 40,000 total API requests.

  • Around 75% (30,000) use only Routes API = $150.00.

  • Around 25% (10,000) use both Routes and Geocoding APIs = $50.00.

  • Worst case, 20,000 distance-based calculations result in 2 API calls each.

Once you exceed 40,000 API calls in a month, Google will charge $5.00 per 1000 additional calls.

If you typically have fewer than 30,000 distance-based rate calculations per month, you likely won’t incur any charges from Google for your API account.

Create A Google Billing Account

Google requires you to have a billing account linked to your API project, even if you don’t expect to be charged for usage over the provided $200.00 per month (see How It Works above for more information about usage).

If you have an existing billing account with Google, you'll need to link it to your Google API project.

 

To create a billing account with Google:

1. Go to the Google Maps Platform.

 

2. Click the Get started button.

IS HS Google API - Get Started

3. Sign in using a Google account - the same account you use to access Gmail, Chrome, YouTube, etc. If you don't have a Google account, you'll need to create one.

IS HS Google API - Sign In

KB KnowledgeIf you're using a business account, ensure that you have Admin privileges before proceeding.

 

5. Complete the billing account setup process.

IS HS Google API - Create New Billing Account

You will be required to

  • Complete a Payments profile for your organization.
  • Add a payment method.

KB KnowledgeGoogle requires billing information even if you don't anticipate being charged for API usage. Learn more about how billing works.

Once billing has been set up, Google may create a default API project called 'My Maps Project'. We recommend renaming this 'Intuitive Shipping' so it can be easily identified.

To rename your default maps project:

1. Click the vertical ellipsis (3 dots) near the far right of the main menu bar (beside your profile picture), then select Project settings from the drop-down list.

IS HS Google API - Project Settings Menu

 

2. Rename your project 'Intuitive Shipping', then click Save.

IS HS Google API - Project Name IS

Intuitive Shipping requires both Routes (formerly Distance) and Geocoding APIs to be enabled. Our system first tries to calculate distance using Directions, measuring your store’s address to the customer’s address. If that fails, we fall back to the Geocoding API, which uses geocoordinates to complete the calculation.

1. From the 'Overview' page, click APIs & Services on the sidebar menu.

IS HS Google API - APIs and Services

If you're not on the Overview page, you can access the sidebar menu by clicking 'Google Cloud' at the far left of the main menu bar. Click APIs & Services under 'Pinned products', then click Enable APIs & services from the drop-down list.

IS HS Google API - Enable APIs

2. Locate the Geocoding API on the page, then click 'Enable'.

IS HS Google API - Enable Geocoding

3. Locate the Routes API on the page, then click 'Enable'.

IS HS Google API - Enable Routes

 

By default, Google adds restrictions to your API key to help prevent unauthorized use. These restrictions can interfere with how your API key works with Intuitive Shipping. To avoid issues, you’ll need to remove the restrictions from your API key.

Please note: Google may caution against this. If your key is only used with Intuitive Shipping, the risk of unauthorized access is extremely low.

 

1. Open the Google Cloud sidebar menu (far left of the main menu bar). Click APIs & Services under 'Pinned products', then select Credentials from the drop-down list.

IS HS Google API - Credentials

 

2. Under 'API Keys', click on your API key name.

IS HS Google API - Platform API Key

3. Under 'Application restrictions', ensure None is selected.

IS HS Google API - App Restrictions None

 

4. Under 'API restrictions', select Don't restrict key.

IS HS Google API - API Restrictions Dont Restrict

5. Click the Save button to save your restriction settings changes.

IS HS Google API - Save No Restrictions

 

 

Connect Your Google API Account To Intuitive Shipping

After enabling the Routes and Geocoding APIs, you must save your API key in Intuitive Shipping. This allows our system to access your API account. Delivery distance conditions and local delivery shipping methods will not work until your Google API is connected to Intuitive Shipping.

To access your Google API key:

1. Open the Google Cloud sidebar menu (far left of the main menu bar). Click APIs & Services under 'Pinned products', then select Credentials from the drop-down list.

IS HS Google API - Credentials

2. Under 'API Keys', click Show Key. This will generate a pop-up box.

IS HS Google API - Show Key

3. Click the copy icon to copy your confidential API key to your computer’s clipboard.

IS HS Google API - Copy API Key

6. Click the downward arrow beside Integrated services, then select Google API from the list provided.

IS HS Carrier Accounts - Select Google API

7. Click the Configure account button.

IS HS Carrier Accounts - Configure Account Google API

 

8. Enter a title, such as ‘Google API’ or ‘Google Distance’.

IS HS Carrier Accounts - Google API Carrier Account Title

 

9. Paste your Google API Key from Step 3 into the API key field.

IS HS Carrier Accounts - Google API Key

Save Your Settings

1. Click the Save button to save your Google API Account.

IS HS Carrier Accounts - Google API Save Button