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 Global Plugin Settings

Global settings control the Google API connection, debug behavior, distance display, unit system, and default store origin used for rate calculations.

Shipping Rate by Distance global settings showing Enable, redacted Google API Key, distance display, debugging, unit, origin address fields, and pricing toggle
Global Shipping Rate by Distance settings with redacted API key and example origin address.

Core settings

  • Enable/Disable: turns the global integration on or off.
  • Google API Key: key used for distance lookup.
  • Show Distance: displays calculated distance to the shopper.
  • Show Cost Breakdown: displays how the shipping total was built.
  • Debugging: shows diagnostic information while testing.
  • Unit: choose kilometers or miles.

Origin address

Set the full address, city/state, postcode/ZIP, and country for the shipping origin. The origin must be specific enough for Google to geocode consistently.

Related

Need an API key? See Google Cloud API Setup. Next, add the shipping method to a zone: Add Shipping Rate by Distance to a Shipping Zone and configure Distance Rules.