Title: MileQuill Distance Shipping Rates
Author: wajahat10947
Published: <strong>November 27, 2026</strong>
Last modified: November 27, 2026

---

Search plugins

![](https://ps.w.org/milequill-distance-shipping-rates/assets/banner-772x250.png?
rev=3830548)

![](https://ps.w.org/milequill-distance-shipping-rates/assets/icon-256x256.png?rev
=3830548)

# MileQuill Distance Shipping Rates

 By [wajahat10947](https://profiles.wordpress.org/wajahat10947/)

[Download](https://downloads.wordpress.org/plugin/milequill-distance-shipping-rates.zip)

 * [Details](https://wordpress.org/plugins/milequill-distance-shipping-rates/#description)
 * [Reviews](https://wordpress.org/plugins/milequill-distance-shipping-rates/#reviews)
 *  [Installation](https://wordpress.org/plugins/milequill-distance-shipping-rates/#installation)
 * [Development](https://wordpress.org/plugins/milequill-distance-shipping-rates/#developers)

 [Support](https://wordpress.org/support/plugin/milequill-distance-shipping-rates/)

## Description

MileQuill Distance Shipping Rates registers a native WooCommerce shipping-zone method.
Offer free shipping within a configured driving distance and a flat shipping charge
beyond that distance up to a maximum limit. Choose a standard single shipping address
or two independent complete addresses for moving, rental and pickup services. Each
distance is measured from the configured origin.

 * Native shipping-zone method with configurable customer-facing title and tax status.
 * Single address mode uses the standard WooCommerce shipping destination (billing
   address when shipping to the billing address).
 * Dual address mode supports new or existing checkout full-address fields.
 * Editable US origin street address, latitude, longitude, free miles, maximum miles
   and flat shipping rate in store currency.
 * Charge once or per qualifying address in dual mode.
 * Server-side HeiGIT route API and optional US Census street-range fallback.
 * Unavailable distance rates are withheld; WooCommerce prevents orders without 
   a valid shipping option.
 * Shortcode [milequill_shipping_rates] for checking one or two addresses, according
   to the configured mode.
 * Public-address diagnostic, short-lived WooCommerce session quotes and local abuse
   controls.
 * No trial, licensing server, telemetry or premium code.

This release supports US addresses, one shipping package per cart and Classic Checkout.
Cart/Checkout Blocks, express checkout, multi-package shipments, multiple origins,
international addresses and truck-specific routing are not supported. Rates and 
address mode are global; zone instances may customize their title and tax status.
If other shipping methods are enabled in the matching zone, customers can select
those methods even when distance shipping is unavailable. Virtual products that 
do not need shipping are unaffected. The calculator does not configure payment gateways.

### External services

The plugin uses the following external services only after the administrator explicitly
configures and permits them. A free Standard HeiGIT account is available; quotas
and terms can change. No API subscription is sold by this plugin.

#### HeiGIT API / openrouteservice

Used to look up US street addresses and calculate driving-car distance. The server
sends the street address and API key to https://api.heigit.org/pelias/v1/search 
and /search/structured. For routing, it sends origin and destination coordinates
and the API key to https://api.heigit.org/openrouteservice/v2/directions/driving-
car/json. No customer name, email, phone, or order ID is sent by this plugin. Addresses
and coordinates may themselves be personal data. The provider receives ordinary 
server request metadata. HeiGIT terms restrict the transmission of personal data:
do not enable customer-address processing unless the use is permitted under those
terms. If this is not possible, this plugin is unsuitable for that deployment. Required
provider and map-data attribution is shown below the Classic Cart/Checkout form 
or with standalone checker results after the administrator opts in; there is no 
plugin promotional credit or link.

 * Service, registration and terms: https://account.heigit.org/
 * Published API terms: https://openrouteservice.org/terms-of-service/
 * API documentation: https://api.heigit.org/
 * Privacy policy: https://heigit.org/privacy-policy/
 * Map data copyright: https://www.openstreetmap.org/copyright
 * Route results license: https://creativecommons.org/licenses/by-sa/4.0/

#### US Census Geocoder (optional)

When explicitly enabled, the plugin sends house number/street, city, state and ZIP
to https://geocoding.geo.census.gov/geocoder/locations/address if HeiGIT returns
no matching street-level address. No Census API key is required. The service returns
coordinates interpolated from street address ranges; a match is not proof of an 
existing building or an exact rooftop location. These coordinates are sent to HeiGIT
for driving distance. Estimates within 0.5 miles of either configured fee boundary
require a manual quote. The margin is a precaution, not a guarantee of accuracy.

 * Service and documentation: https://geocoding.geo.census.gov/geocoder/
 * Privacy policy: https://www.census.gov/about/policies/privacy.html

### Privacy

No analytics or telemetry is included. No external requests occur before provider
opt-in and API configuration. API keys are stored in WordPress settings unless the
server constant is used. A quote includes a keyed address/configuration hash, rate,
distance estimates, status and timestamp in the WooCommerce session. Dual mode also
stores the two street addresses in the checkout session for up to 10 minutes of 
use, so WooCommerce can recalculate rates. The checkout snapshot stores the displayed
rate hash, cost and taxes. Native WooCommerce shipping-rate caches hold distance
metadata, not additional raw address fields. Quotes, dual context and shortcode 
prefill are usable for 10 minutes; physical storage follows WooCommerce session 
cleanup. The prefill stores only submitted addresses, not name or email. A keyed
IP hash identifies temporary rate-limit counters (10-minute expiration). Order metadata
stores delivery distances, estimated status, fee, and in dual mode the submitted
addresses. These records are part of order fulfillment and follow the store’s WooCommerce
order retention policies. Diagnostic output is displayed only to authorized managers
and is not persisted by the plugin. Deletion removes global plugin settings and 
registered zone instances when WooCommerce is active; order history is intentionally
preserved. Remove the method from zones before deleting the plugin if WooCommerce
is inactive. Custom order metadata is included in WooCommerce personal-data exports
and removed when WooCommerce anonymizes an order. The administrator must provide
an accurate store privacy notice and manage session and provider data rights requests.
The plugin does not guarantee privacy compliance.

## Installation

If you tested an earlier pre-approval version under the Distance Shipping Calculator
or Wajahat RouteTariff name, deactivate it first. This is a new plugin slug and 
settings namespace: re-enter your origin and API key, and replace old shipping-zone
methods. Do not leave two versions enabled.

 1.  Install and activate WooCommerce. Set up a Classic Checkout page with [woocommerce_checkout]
     and Classic Cart with [woocommerce_cart].
 2.  Upload and activate MileQuill Distance Shipping Rates. It starts disabled. Since
     this pre-approval name and slug change creates a new settings namespace, re-enter
     your calculator settings and add the new shipping method in your zone. Do not 
     keep old pre-release versions active.
 3.  Go to WooCommerce > Distance Shipping. Enter a complete US origin address and 
     its independently verified latitude and longitude. The origin address must match
     the coordinates.
 4.  Set free miles, maximum miles and flat rate. At or below the free limit, shipping
     is free. Above that limit through the maximum, the configured rate applies. Outside
     the maximum, the method is unavailable. Maximum must exceed the free limit.
 5.  Register your own HeiGIT API key at https://account.heigit.org/ and enter it. 
     Optionally define MILEQUILL_ORS_KEY in wp-config.php instead. Review the provider
     terms and privacy rules; do not enable customer-address processing unless the 
     provider permits your use. Review and enable the optional Census fallback separately.
 6.  Select Single or Dual address mode. Single uses standard WooCommerce destination
     fields. Dual adds optional full-address checkout fields and requires both to quote
     the distance method; default keys are milequill_pickup_address and milequill_delivery_address.
     Existing full-address billing fields can be mapped. Keep normal WooCommerce country,
     state, city and postcode fields configured for shipping zones and taxes. Address
     format: House number Street, City, ST ZIP, USA. Enter apartment/unit information
     separately where applicable.
 7.  Enable the calculator and save. Go to WooCommerce > Settings > Shipping > Shipping
     zones. Edit a US zone, choose Add shipping method, and select MileQuill Distance
     Shipping Rates. Edit the method title and tax status if desired. The pricing and
     address mode are inherited from the calculator’s global settings.
 8.  Remove any legacy zero-cost Flat rate or competing distance method from the zone
     if every order in that zone must meet distance rules. Other shipping options are
     not blocked by this plugin. Use a broad US zone for dual-address stores if required
     by their destination configuration. The normal WooCommerce destination selects
     the zone; the dual fields do not override the zone or tax address.
 9.  Test free, paid, out-of-area, invalid address, changed-address, rate switching,
     taxes, order completion and payment on a staging store. Use the diagnostic with
     a public address. For dual mode, rates appear once both checkout addresses are
     provided. Use physical products in one shipping package.
 10. Optionally add [milequill_shipping_rates] to a page. It shows an estimate only;
     the actual shipping zone and tax are determined at checkout. Exclude the checker
     and checkout from full-page caching where necessary.

## FAQ

### Is this a shipping method?

Yes. Add MileQuill Distance Shipping Rates to a WooCommerce shipping zone. It adds
an actual shipping rate, not a separate cart fee. The global settings control the
rate and the zone controls availability.

### Does the plugin work outside the United States?

No. This version requires US street addresses with state and ZIP. It uses driving
miles only.

### Why do some addresses need a manual quote?

Street-level geocoders can be incomplete. The calculator rejects missing or ambiguous
street matches and never substitutes a city or ZIP centroid. Census estimates near
configured boundaries also require manual review. Provider outages and quota errors
block automatic orders rather than allowing an unverified price.

### What happens if the API is unavailable?

The distance rate is withheld when the service cannot verify a quote. WooCommerce
prevents checkout if no other shipping method is available for a shippable cart.
The local test-limit reset does not reset provider quotas.

### Can I use checkout blocks?

No. Use the classic WooCommerce checkout shortcode. Store API checkout using the
distance method is not supported; use Classic Checkout. Other methods are not intentionally
blocked.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“MileQuill Distance Shipping Rates” is open source software. The following people
have contributed to this plugin.

Contributors

 *   [ wajahat10947 ](https://profiles.wordpress.org/wajahat10947/)

[Translate “MileQuill Distance Shipping Rates” into your language.](https://translate.wordpress.org/projects/wp-plugins/milequill-distance-shipping-rates)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/milequill-distance-shipping-rates/),
check out the [SVN repository](https://plugins.svn.wordpress.org/milequill-distance-shipping-rates/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/milequill-distance-shipping-rates/)
by [RSS](https://plugins.trac.wordpress.org/log/milequill-distance-shipping-rates/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.2.1

 * Use the distinctive MileQuill Distance Shipping Rates brand and new milequill-
   prefixed identifiers, shortcode, text domain and shipping method.
 * No changes to distance pricing rules or API integration. Reconfigure pre-release
   installations after changing slugs.

#### 1.2.0

 * Adopt a distinctive plugin name and slug, with unique prefixed declarations, 
   data keys, and handles as requested by directory reviewers.
 * Use a new settings namespace and shipping method identifier. After upgrading 
   a pre-approval development installation, re-enter settings and add the new shipping
   method to each zone.

#### 1.1.4

 * Add plugin author and WordPress.org contributor information.

#### 1.1.3

 * Sanitize and validate diagnostic and standalone checker POST address inputs before
   use.
 * Escape the translated Classic Checkout exception message.
 * Add WordPress compatibility metadata to the readme.

#### 1.1.2

 * Explicit zero-cost shipping price and Free Delivery label for distance rates.
 * Moved provider attribution out of the shipping-rate row to below the Classic 
   Cart/Checkout form; standalone checker attribution remains visible.

#### 1.1.1

 * Diagnostic now reports saved distance limits, rate and eligibility for the tested
   address.
 * Out-of-area checkout notice shows the calculated distance and maximum allowed
   distance.
 * Version change invalidates previous quote fingerprints.

#### 1.1.0

 * Registered native WooCommerce shipping-zone method; removed separate fee.
 * Added zone title/tax settings, shipping package fingerprint, rate metadata, and
   checkout rate validation.
 * Preserved single/dual address settings and shortcode.

#### 1.0.0

 * Initial generic release: configurable origin, distance thresholds, fee, address
   modes, diagnostics, external service opt-ins, and checkout validation.

## Meta

 *  Version **1.2.1**
 *  Last updated **42 minutes ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.5 or higher **
 *  Tested up to **7.1.5**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [delivery-fees](https://wordpress.org/plugins/tags/delivery-fees/)[distance](https://wordpress.org/plugins/tags/distance/)
   [local delivery](https://wordpress.org/plugins/tags/local-delivery/)[shipping](https://wordpress.org/plugins/tags/shipping/)
   [woocommerce](https://wordpress.org/plugins/tags/woocommerce/)
 *  [Advanced View](https://wordpress.org/plugins/milequill-distance-shipping-rates/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/milequill-distance-shipping-rates/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/milequill-distance-shipping-rates/reviews/)

## Contributors

 *   [ wajahat10947 ](https://profiles.wordpress.org/wajahat10947/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/milequill-distance-shipping-rates/)