1. Home
  2. How-To
  3. How To Add Google API Credentials

How To Add Google API Credentials

Intuitive Shipping uses Google Directions and Geocoding APIs when calculating distance-based shipping rates. If your Shipping Scenarios are using distance to calculate rates, you will to need add your Google Directions and Geocoding APIs to Intuitive Shipping.

Calculating distance-based shipping rates without adding your Google API Key to Intuitive Shipping will result in an error.

You must have a Billing Account set up to use your Google Maps API Key, even if you don’t anticipate being billed for usage (check out the How It Works section for more information on billing).

  • If you already have a Google Maps Billing Account, skip ahead to Get A Project API Key. If you haven’t yet set up a Billing Account, continue to Create A Billing Account.

Create A Billing Account

  • Sign in to the Google Maps Platform with your Google credentials – i.e. the same credentials you use to sign in to Gmail or Google My Business.
  • Click the Get started button.
  • Check the boxes beside Routes and Places, then click the Continue button.
  • Click the drop-down arrow beside Select or create project, then select + Create a new project from the list.
  • Enter the project name – e.g. ‘Intuitive Shipping’ – for which you want to add an API key, then click Next.
  • Click Create Billing Account and follow the steps provided to complete the Billing set-up process.

Google generally provides a one-time credit – e.g. $300 – for new billing accounts.

In addition, Google provides the equivalent of up to $200 of API requests – roughly 35,000 distance-based calculations on Intuitive Shipping – per month for FREE. Learn more in How It Works below.

Get A Project API Key

  • Click the Select a project drop-down.
  • Select or create the project – e.g. ‘Intuitive Shipping’ – for which you want to add an API key.
  • Click the Menu button, then select APIs & Services > Credentials from the drop-down list.
  • On the Credentials page, click Create credentials, then select API key.
  • Your API key is displayed in the pop-up window. Click Close.
  • The new API key is listed on the Credentials page under API Key.

In order for Intuitive Shipping to work effectively, please do not apply any Key restrictions.

Enable Directions and Geocoding APIs

  • Click Dashboards on the sidebar menu, then click Enable APIs and Services.
  • Under Maps, find the Directions API box and click it.
  • Click the Enable button.
  • Click APIs in the sidebar menu.
  • From the list under Additional APIs, click Geocoding API.
  • Click the Enable button.

How It Works

Each time Intuitive Shipping is used to calculate a distance-based shipping rate, it sends an API request to Google with your Directions API. If the required information is not returned, it sends another API request to Google with your Geocoding API.

That means, each distance-based shipping calculation will result in at least one (1) and sometimes two (2) Google API requests.

Distance API will be sufficient typically about 75% of the time.

Both Directions API and Geocoding API cost $5.00 per 1000 API requests per month. Google Maps provides $200 per month of total API requests for FREE. That means you can use Intuitive Shipping to calculate roughly 35,000 distance-based shipping quotes before you reach your free limit.

  • 30,000 Directions API requests = $150
  • 5000 Distance API requests + 5000 Geocoding API requests = $50
  • Total 40,000 API requests (based on $5.00 per 1000 requests) = $200

Once you reach your free limit, Google stops allowing API calls, and Intuitive Shipping can no longer return distance-based shipping rates until the next free billing period starts or until you select a paid plan.

If you anticipate exceeding 30,000 – 40,000 distance-based shipping calculations per month, we recommend that you select a paid Google Maps plan.

Copy Your API Key to Intuitive Shipping

Once your API Key has been generated and you have enabled both Directions and Geocoding API, you must copy your Key into Intuitive Shipping.

  • Click the Menu button, then select APIs & Services > Credentials from the drop-down list.
  • Beside your Google API Key, click the Clipboard icon.
  • Log into Shopify, then click Apps on the Shopify sidebar menu.
  • Click on Intuitive Shipping from the list of installed apps.
  • Click the Settings menu button.
  • Scroll down to Google API Credentials, then right-click and paste the Password below API Key.
  • Click the Save button at the top of the screen.

You just added Google API Credentials!

Updated on April 20, 2021

Was this article helpful?

Related Articles

Need Support?
If you can't find the answer you're looking for, don't worry. We're here to help.
Contact Support