Signup

Creating a Google Maps API Key


Overview

A Google Maps API key is required for the following;

  • Store pickup map
  • Driving distance validation 
  • Max distance validation
  • Auto-address suggestions

Important Note

Google provide $200 USD of free credit per month which is more than enough for most merchants. Should you exceed their free limit you will be charged for your usage. You can view their latest pricing & plans at https://cloud.google.com/maps-platform/pricing


Creating a Google Maps API Key


  1. Visit the Google Maps Platform page and click Get started

  2. Within the Maps APIs and Services page click Maps Javascript API

  3. On the Maps JavaScript API page click Enable  

  4. Click APIs in the side bar and select Places API

  5. On the Places API page click Enable

  6. Click APIs in the side bar again and select Directions API

  7. On the Directions API page click Enable

  8. Click APIs in the side bar again and select Geocoding API

  9. On the Geocoding API page click Enable

  10. Click APIs in the side bar again and select Distance Matrix API.

  11. On the Distance Matrix API page click Enable

  12. Now you have enabled all the required API's, you must generate an API key. Click the Navigation menu button.

  13. Select APIs & Services and then Credentials

  14. Click the Create Credentials button and select API Key


  15. You should now see your Google Maps API key

  16. Copy and paste your API Key into Store Pickup + Delivery > Settings > Local Delivery > Distance validation > Google Maps API key and click the Save button.


Securing your Google Maps API Key

In order for our app to be able to use your API key you must not enable any restrictions on your API key.


Troubleshooting

Invalid API Key

If you see an error saying that your API Key is invalid please double check the following:

  1. Double check that you have correctly enabled access to all the required APIs within the Google Maps Platform admin panel. Follow steps 1-10 above to confirm. 
  2. Ensure that you have correctly copied the full API key from Google and have not accidentally copied over any blank spaces at the start or end of the key. 
  3. Make sure that you have added your credit/debit card billing details to your Google account.

Permissions issue

If you are presented with a permission error please double check the following:

  1. Double check that you have correctly enabled access to all the required APIs within the Google Maps Platform admin panel. Follow steps 1-7 above to confirm. 
  2. Please ensure you have no restrictions set on your API key
A
Andrew is the author of this solution article.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.