WooCommerce Shipping Rate by Distance

Calculate WooCommerce shipping costs based on distance, weight, and shipping class. Powered by Google Routes API with smart formulas and zone-level control.

Shipping Rate by Distance Google Cloud API Setup

Shipping Rate by Distance needs a Google Maps Platform API key so it can calculate the distance between the store origin and the customer destination.

Create the key

  1. Open Google Cloud Console and select or create a project.
  2. Enable billing for the project.
  3. Enable the routing/distance API required by your plugin configuration. Google now documents the Routes API and Compute Route Matrix for route matrix use, while Distance Matrix API is documented as a legacy API.
  4. Create an API key.
  5. Restrict the key to the API used for distance calculation and to your server or domain where possible.
  6. Paste the key into WooCommerce > Settings > Shipping > Shipping Rate by Distance.

Official Google references

Google pricing and product status can change, so confirm current billing, quotas, and API restrictions in your Google Cloud project before launch.