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
- Open Google Cloud Console and select or create a project.
- Enable billing for the project.
- 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.
- Create an API key.
- Restrict the key to the API used for distance calculation and to your server or domain where possible.
- Paste the key into WooCommerce > Settings > Shipping > Shipping Rate by Distance.
Official Google references
- Google Routes API documentation.
- Google Distance Matrix API legacy documentation.
- Google Maps API security best practices.
Google pricing and product status can change, so confirm current billing, quotas, and API restrictions in your Google Cloud project before launch.