WooCommerce Distance-Based Shipping Rates for Local Delivery
Charge for local delivery using
driving distance in miles, not just ZIP codes or straight-line distance. MileQuill Distance Shipping Rates adds a native WooCommerce shipping-zone method that calculates eligible shipping rates from one configured US business origin.
Offer
free shipping within a chosen mileage, apply
one flat shipping fee beyond that distance, and set a maximum delivery distance if needed. Leave the maximum distance blank to remove the plugin's mileage cutoff, while still requiring a valid driving route and a matching WooCommerce shipping zone.
Built for US businesses offering local delivery, pickup, or equipment rentals, MileQuill supports standard WooCommerce address fields or optional dual pickup-and-delivery checks at Classic Checkout.
Key Features
- Real driving-mile calculations: Estimate eligible shipping distance along roads using HeiGIT/openrouteservice.
- Free local delivery: Set the number of driving miles customers can receive free shipping within.
- Flat-rate distance shipping: Charge one configurable shipping fee when the verified route exceeds the free-distance threshold.
- Optional unlimited mileage: Leave Maximum Delivery Distance empty to remove the plugin's upper-mileage limit. Routing and shipping-zone coverage still apply.
- Maximum delivery area: Enter a maximum mileage to make the MileQuill shipping method unavailable for farther destinations.
- WooCommerce shipping-zone integration: Add a native shipping rate, not an extra order fee.
- Single address mode: Use the customer's WooCommerce shipping or billing destination. Accept the street alone or a full US address pasted into the street field when location fields agree.
- Dual address mode: Check separate pickup and delivery locations from the same business origin; charge once or per qualifying address.
- Street address verification: Reject ambiguous city- or ZIP-only locations instead of assuming they are accurate delivery points.
- Optional US Census fallback: Try US street-range interpolation when the primary geocoder does not find a street-level match. Estimated locations have extra safeguards near pricing boundaries.
- Route lookup safeguards: Retry certain road-snap failures within a bounded search radius and flag eligible estimated routes.
- Standalone shipping checker: Show a delivery-distance estimate on a page using
[milequill_shipping_rates].
- Built-in diagnostic: Troubleshoot test-address lookups and routing responses from WooCommerce > Distance Shipping.
Who Can Use MileQuill?
MileQuill can be used by stores and services offering delivery from a single US origin, such as furniture retailers, equipment rental companies, local suppliers, and pickup-and-delivery businesses. Businesses remain responsible for configuring accurate service areas, rates, and checkout settings.
How Distance-Based Shipping Works
- Enter your US business address and verified latitude/longitude coordinates.
- Set a free-delivery mileage threshold and one flat delivery fee.
- Optionally set a maximum distance, or leave it blank for no plugin mileage cutoff.
- Add MileQuill as a method in the appropriate WooCommerce shipping zone.
- At Classic Checkout, the customer enters a valid US street address. MileQuill verifies it and requests driving distance.
- If the route and zone are eligible, WooCommerce displays free delivery or the configured flat shipping rate.
Pricing example: Configure free shipping through 20 miles, then a $50 flat fee for verified routes over 20 miles. The maximum distance can be left blank. These are illustrative merchant settings, not default prices, paid pricing tiers, or per-mile charges.
Single Address or Dual Address Checkout
Single Address Mode: Calculate from your configured origin to the standard customer shipping destination. WooCommerce city, state, and ZIP are entered separately. If the customer pastes a complete address into Street Address, MileQuill normalizes it when the other address fields match.
Dual Address Mode: Validate two complete US locations against the same origin. This can help with rental pickups and deliveries. Choose whether a qualifying flat fee is charged once or for each qualifying location.
What MileQuill Does Not Do
- It does not calculate a fee per mile or offer multiple paid-distance tiers.
- It does not support multiple origins, international delivery addresses, or WooCommerce Cart/Checkout Blocks.
- It is not a turn-by-turn navigation, dispatch, route-optimization, or checkout payment plugin.
- It cannot guarantee quotes for every valid postal address: provider coverage and road routing may vary.
Compatibility and Requirements
- WooCommerce with Classic Cart and Checkout; one physical-goods shipping package.
- US street addresses only, with distances in miles.
- A HeiGIT/openrouteservice API key, separately obtained and configured by the store administrator.
- Administrator confirmation of the geocoding provider's permitted use, privacy notice, and attribution requirements before sending addresses.
- Optional US Census Geocoder processing requires separate opt-in.
- A matching WooCommerce shipping zone. Other enabled shipping methods remain selectable, so configure zones carefully if an outside-area order must be blocked.
- Estimates near configured pricing boundaries may require a manual quote. A street address may verify while road routing still fails.
- Install and activate WooCommerce. Use the Classic [woocommerce_cart] and [woocommerce_checkout] shortcodes for Cart and Checkout.
- Install and activate MileQuill. It is initially disabled pending configuration.
- Open WooCommerce > Distance Shipping. Enter a complete US origin street address and verified latitude/longitude for the same location.
- Set your free distance and flat shipping fee. Leave maximum distance blank to remove the mileage cutoff, or enter a maximum greater than the free threshold.
- Obtain your own API key at https://account.heigit.org/. Enter it in the settings, or define MILEQUILL_ORS_KEY in wp-config.php. Review the provider terms and privacy requirements before opting in. Enable US Census lookup separately if desired.
- Choose Single or Dual Address mode. Dual mode can add checkout address fields or use configured existing complete-address fields.
- Enable and save the calculator. Go to WooCommerce > Settings > Shipping > Shipping zones; edit a US zone and Add shipping method > MileQuill Distance Shipping Rates.
- Set the shipping method label and tax status. Remove competing shipping methods if they would bypass your delivery limits.
- Test free, paid, out-of-area, invalid-address, tax, and payment scenarios in a staging store. Use one physical-product shipping package.
- Optionally place [milequill_shipping_rates] on a page. It provides an estimate; the final rate and taxes are set at checkout.
If replacing an early development version with a different plugin slug, deactivate that version and configure the new settings and shipping-zone method again.