1. Home
  2. Docs
  3. WooCommerce Multi Locatio...
  4. Google API

Google API

To calculate the distance and duration between the shipping or billing address and the WooCommerce store or warehouse address, the plugin uses the Google Maps Distance Matrix API, Geocoding API, and Javascript API. Note that a Google Map API is required for this functionality.

How to obtain Google Map API Key :-

  1. Access the website https://console.developers.google.com and sign in using your Google account to proceed.
  2. On the Dashboard screen, access the left-hand menu and click on “Library”. Then, search for “Google Maps Distance” and click on it Matrix API. geocoding,javascript api.
    WooCommerce MultiLocations Google API
    Distance rate matrix image
    WooCommerce MultiLocations Google API
    GeoCoding API Image
    WooCommerce MultiLocations Google API
    Map Javascript API Image
  3. Click on the Enable button.WooCommerce MultiLocations Google API
  4. Then Create to create a new project
    WooCommerce MultiLocations Google API
  5. Give your new project a name, i.e., Distance Rate Shipping, and then click Create.
    WooCommerce MultiLocations Google API
  6. Click the Enable API button, then click the Credentials tab from either the left-hand menu or the banner across the top.WooCommerce MultiLocations Google API
  7. Click Add credentials and choose API key.WooCommerce MultiLocations Google API
  8. A window will pop up, with your new API key. Admin can set Application restrictions and API restrictions as per their requirements, if needed
    WooCommerce MultiLocations Google API
  9. Copy the API key generated in the pop-up box and keep it as you will need to enter this in the Google API textbox.
  10. Clicking on Validate will check if the entered API key is valid or not.

 

How can we help?