Distance Based Pricing for WooCommerce
Charge for delivery by how far the customer is: distance bands or a rate per mile or kilometre, as a shipping method.

What it does
Charge for delivery by how far the customer is: distance bands, or a rate per mile or kilometre, as a shipping method. It measures from the address you deliver from to the customer's delivery address, so florists, caterers, removals firms and anyone else who delivers by distance can set a fair price without a table of postcodes.
Price from a table of bands such as "up to 5 km is 4.00, up to 10 km is 7.00", or from a starting charge plus a rate beyond it, with a lowest charge, a highest charge and a furthest delivery distance. Distance is a straight line with an adjustable road estimate by default, or a real driving distance from OSRM, OpenRouteService or Google using your own key. It is an ordinary WooCommerce shipping method, so it works on the classic and block cart and checkout.
Pro adds several branches, rules by product, category and shipping class, time-of-day surcharges, round trips and a usage report. Only what is needed to measure a delivery leaves your site, and only to the services you use; the questions below say exactly what each one receives. Map data is © OpenStreetMap contributors, under the ODbL, and driving distances from OpenRouteService are credited as © openrouteservice by HeiGIT | Data from OpenStreetMap. If the licence lapses, nothing is deleted and delivery is priced from the distance table.
See it in action
What the plugin does
- A delivery method you add to any shipping zone, as many times as you like, so a van and a bicycle can each have a table of their own.
- Price a delivery from a table of distance bands, such as "up to 5 km is 4.00, up to 10 km is 7.00". The last band is the furthest the method delivers.
- Or a starting charge plus a rate for every mile or kilometre past a distance the starting charge covers.
- A lowest charge, a highest charge and a furthest delivery distance.
- Miles or kilometres, for the whole shop.
- The address you deliver from, looked up when you save it and confirmed in settings once it is found, with latitude and longitude as an advanced option to override it.
- A straight line with an adjustable road distance estimate, 1.26 to start with (1 is the exact straight line), from the address OpenStreetMap finds. Addresses are verified for Great Britain, the United States, Canada, Australia, Ireland, Germany and France; other countries follow the same steps but are not individually tested.
- Real driving distance from a routing server you run or rent (OSRM), from OpenRouteService with your own free key, or from Google with your own key. OSRM and OpenRouteService were checked against the real services on 14 October 2026, and when one fails you are told which service failed and why.
- Your own wording when delivery is not offered, because the address is too far, cannot be found or the service is not answering, on the classic and block cart and checkout.
- A fallback charge for an address that cannot be found.
- Saved lookups, so an address found once is not looked up again, with a button to clear them.
- The classic cart and checkout and the Cart and Checkout blocks, zoned and taxed like any other shipping method.
- Several branches: each customer is priced from the nearest by straight line, and only that one is sent to a routing service.
- Rules by product, category and shipping class that add a fixed amount, an amount per unit or a percentage to the delivery charge, or refuse delivery. Every matching rule applies in order, and a refusal wins.
- Weekday and time-of-day surcharges, fixed or a percentage, in your shop's time zone, including windows that run past midnight.
- Round-trip distances, so every distance is counted twice.
- A daily limit on lookups, a usage report (today, the last 7 days, failures and saved answers used) and a choice of how long saved answers are kept, from 1 to 90 days.
- Products priced by distance: the customer enters an address on the product page and the travel charge is added to the cart as a fee, once for each line of that product.
- A product priced by distance cannot be added to the cart without a quote, on the classic cart and the Cart block.
- Optional Google address suggestions on the product page, with a separate browser key of your own.
- A suggested paragraph for your privacy policy, naming the service in use.
- Settings import and export, including branches, rules and surcharges, for a backup or another shop. The Google key is never exported.
- High-Performance Order Storage.
- PluginCity licensing, updates and direct support.
Pricing
Every Pro plan is the same plugin with every feature. The only difference is how many sites you can run it on.
Single site
One site, with a year of updates and support.
$49/year
Secure checkout. Cancel any time.
5 sites
Most popularUp to 5 sites, with a year of updates and support.
$99/year
Secure checkout. Cancel any time.
25 sites
Up to 25 sites, with a year of updates and support.
$199/year
Secure checkout. Cancel any time.
Need more than 25 sites? Get in touch about a custom licence.
Frequently asked questions
How is the distance measured?
You choose. Straight line is the default: OpenStreetMap finds the address (for a Great Britain postcode, the free postcodes.io service is asked first) and the plugin measures a straight line and multiplies it by a road distance estimate you can adjust, 1.26 to start with (set it to 1 for the exact straight line). That is an estimate of the road distance, not a driving distance. For the real driving distance, choose OSRM (a routing server you run or rent, not the public demo server, which is for light, non-commercial use), OpenRouteService with your own free key, or Google with your own key. Driving distances from OSRM and OpenRouteService were checked against the real services on 14 October 2026, using the public OSRM demo server for that test only. If a driving distance cannot be worked out, the customer sees your own wording, and you are told which service failed and why.
Is it a driving distance?
Only if you choose it. A straight line, even with the road distance estimate, is an estimate and not a driving distance, and the settings screen says so. Choose OSRM, OpenRouteService or Google if you want the real driving distance.
Do I need a Google account or key?
No. Straight line, the default, does not need one. OpenRouteService, another way to get driving distances, uses its own free key from HeiGIT, not a Google one. Google is there if you want driving distances, with your own key, and Google bills you for those requests. A second, separate Google key is only for address suggestions on product pages, and is optional.
Which services does it contact, and what do they receive?
Only the services you use, with one addition for Great Britain and one button an administrator can press. If you choose OSRM or OpenRouteService, the address still goes to OpenStreetMap Nominatim to find its place on the map. OpenStreetMap Nominatim, the default, receives the delivery address, the address you deliver from, or an address an administrator types to test a lookup. For a Great Britain address, unless you chose Google, postcodes.io, a free UK postcode service, is asked first and receives the postcode alone, or the first half of it, never the street or the town. Northern Ireland, the Channel Islands, the Isle of Man and other countries use OpenStreetMap only. postcodes.io is used for Great Britain postcodes only. Ireland is priced from the street or town, because OpenStreetMap holds no Eircodes. Addresses are verified for Great Britain, the United States, Canada, Australia, Ireland, Germany and France. Other countries follow the same street, postcode and town steps but are not individually tested. An OSRM server you supply receives map coordinates only, never an address. OpenRouteService, run by HeiGIT at api.openrouteservice.org and used with your own free key, receives two coordinates only: the shop's, and the customer's rounded to about 100 m. Google, if you choose it, receives the address and then the coordinates. A request is made only while a customer's delivery is being priced, while an administrator saves the address you deliver from, or when an administrator presses the button to test an address lookup. The Diagnose my server button asks about well-known places in your shop's country, never a customer address: it sends test queries to Nominatim, and to postcodes.io too when your shop is in Great Britain, and if you chose OSRM or OpenRouteService it asks that service for a short route in London. It gives a short verdict with a Copy report button, but only when an administrator presses it. Nothing is sent on activation or on a schedule.
What does PluginCity receive?
Licence and update checks, and nothing else. Customer addresses, distances and charges are not sent to PluginCity.
Is customer data kept?
A found location is kept against a scrambled copy of the address for 30 days, or for 1 to 90 days if you choose another length, and then expires. The plugin keeps nothing else about a customer. It adds a suggested paragraph naming the service in use to Settings, Privacy, Policy Guide.
What if the address cannot be found, or is too far away?
The customer sees your own wording. For an address that cannot be found you can set a fallback charge, so they are offered that instead of losing the sale. A customer outside your furthest delivery distance is told delivery is not offered.
Will the public OpenStreetMap server cope with a busy shop?
The public Nominatim server asks for no more than one request a second, so the plugin spaces lookups out and saves every answer, and an address found once is not asked for again. A busy shop should point the plugin at its own Nominatim server, which is a setting.
Can I deliver from more than one place?
Yes. Add branches, up to ten. Each customer is priced from the nearest of your branches and your main address by straight line, and only that one is sent to Google or a routing server, so more branches do not mean more charges.
Do rules and surcharges stack?
Yes. Every rule that matches applies, in the order you wrote them, then every surcharge in force. A rule that refuses delivery wins over the rest. A surcharge is judged by the moment the customer is shown the price, in your shop's time zone, and a window that runs past midnight belongs to the day it starts on.
What happens when the daily limit on lookups is reached?
Customers are offered your fallback charge, or no delivery if you set none, until the next day. Orders are never blocked by it.
How does a product priced by distance work?
The customer enters an address on the product page and the shop measures it. The travel charge is added to the cart as a fee, once for each line of that product. The browser never sends a price, only the distance is kept, and the charge is worked out again from the product's settings every time the cart is totalled.
Does it work with the block cart and checkout?
Yes. The delivery method is a WooCommerce shipping method, so the classic and block cart and checkout, the mini-cart, orders and emails all show it. The message for a customer too far away is shown on both.
Can I use more than one delivery method?
Yes. Add the method to as many shipping zones as you like, or twice to one zone with different tables, such as a van and a bicycle.
Does it work with High-Performance Order Storage?
Yes. It does not write distances or charges to orders.
How do updates and support work?
Download the plugin from your PluginCity account and enter your licence key under WooCommerce, Distance Based Pricing, Licence. Updates then appear on the Plugins screen, and the key also connects the site to direct support.
What happens if my licence lapses?
Nothing is deleted. Delivery is priced from your main address by the distance table, as before. Your branches, rules, surcharges and distance options stay on the screen as words you can read but not change, and products priced by distance sell at their ordinary price. Renewing switches them back on as you left them.
Recent Pro releases
Version 1.0.013 Oct 2026
- First public release.
More plugins

PluginCity Estimated Delivery Date for WooCommerce
Show an estimated delivery date on product pages, the cart, checkout and emails, and tell your team the dispatch date. Counted in working days.

PluginCity Minimum Order for WooCommerce
Set a minimum order amount or quantity for WooCommerce. Checkout waits until the cart reaches it, and customers see exactly what to add.

PluginCity Free Shipping Bar for WooCommerce
A free shipping progress bar for WooCommerce. Shows customers how much more to spend, on the cart, at checkout and in the mini-cart.

Stock Alerts for WooCommerce
Lets customers leave their email address on a sold-out product or variation, and emails them when it can be bought again. A change in the stock number on its own sends nothing.

PluginCity Delivery Instructions for WooCommerce
Add a delivery instructions box to WooCommerce checkout, classic or block. Shown on the order, in your emails and on the thank-you page.

PluginCity Product Expiry Dates for WooCommerce
Set a product expiry date in WooCommerce. When it passes the product comes off sale, and a cart still holding it cannot be checked out.