Shipping Cost by Distance

Calculates shipping cost based on the distance between the seller and the buyer. OpenStreetMap (straight-line) — free, Google Maps / Yandex (road distance) — paid.
Reviews: 5
Last update: 18.04.2026 Supports current CS-Cart version

Calculates shipping cost based on the distance between the seller and the buyer. OpenStreetMap (straight-line) — free, Google Maps / Yandex (road distance) — paid.

Shipping Cost by Distance
$99.00

What it does

The add-on replaces flat-rate and zone-based shipping with a model that charges customers based on the actual distance between the store (or seller in Multi-Vendor) and the delivery address. Distance is retrieved via Google Maps, Yandex or the free OpenStreetMap Nominatim service and matched against rate tables you configure directly inside each shipping method. The result is a fair, transparent shipping cost that scales with real geography.

⚠ Important — external API costs: Google Maps and Yandex are pay-per-use services billed by the provider directly — the add-on licence does not include API credits. If you want to avoid third-party costs entirely, choose the OpenStreetMap provider: it uses the free public Nominatim geocoder with no API key or usage fees.

Key features

  • Three map providers — choose Google Distance Matrix, Yandex Distance Matrix, or free OpenStreetMap (straight-line via Nominatim) from a single selector; switch at any time without losing your rate tables.
  • Automatic provider fallback — if Google or Yandex returns an error or timeout, the add-on seamlessly falls back to OpenStreetMap so shipping cost is always calculated.
  • Distance-based rate tables — add distance (D) conditions to any existing shipping method alongside price, weight and item-count conditions; fully compatible with CS-Cart 4.13.1+ base-rate structure.
  • Min / max billable distance — set a floor and ceiling for the distance used in calculations to handle nearby or very distant orders correctly.
  • Built-in session cache — calculated distances and geocoding results are stored in the cart session with a configurable TTL, cutting API calls and protecting your quota.
  • Built-in connection test — verify your API key and provider availability directly from the add-on settings page with a one-click connectivity check.
  • Detailed logging — three log levels (errors / warnings / debug) with optional masking of sensitive data (addresses, API keys) to stay GDPR-compliant.
  • Distance on the product page — optionally show the calculated distance and route addresses to customers on the product detail page to build delivery transparency.
  • Multi-Vendor & Ultimate ready — in Multi-Vendor each seller's warehouse address is used automatically; in Ultimate the company settings address is resolved per-store.
  • Self-hosted Nominatim support — point the add-on at your own Nominatim server for high-volume stores that need no usage-policy limits.

How it works

  1. Install & configure — select a map provider, enter your API key (required for Google and Yandex; not needed for OpenStreetMap), set distance units (km or mile) and save.
  2. Set up rate tables — open any shipping method, add distance conditions and specify the rate for each distance bracket, just like you would for weight or price conditions.
  3. Customer checks out — the add-on geocodes the customer's shipping address and the seller's address, requests the road distance from the selected provider, and feeds the result into CS-Cart's shipping rate engine.
  4. Rate is applied — CS-Cart picks the matching distance bracket and displays the corresponding shipping cost at checkout. The result is cached for the session so subsequent page loads are instant.

Requirements

  • CS-Cart or Multi-Vendor 4.9.0 or higher
  • Google Maps API key — required when using the Google provider (get a key)
  • Yandex Distance Matrix API key — required when using the Yandex provider (get a key)
  • No API key needed for OpenStreetMap / Nominatim (public server or self-hosted)

Provider comparison

Provider Distance type API key Cost
Google Maps Road distance (driving route) Required Paid, pay-per-use (Google pricing)
Yandex Road distance (driving route) Required Paid, pay-per-use (Yandex pricing); each new address triggers 2 API calls (geocoder + matrix)
OpenStreetMap Straight-line distance (Haversine formula) Not required Free (public Nominatim or self-hosted)

Google and Yandex provide more accurate results for routes with winding roads or detours. OpenStreetMap is faster and free, but may underestimate actual driving distance in complex terrain.

Common questions

Q: Does it work with Multi-Vendor?
A: Yes. Each vendor's warehouse address is resolved automatically. Distance is calculated per seller, so customers with items from different vendors get separate distance-based rates.

Q: Do I need to pay for a Google Maps or Yandex API key?
A: Yes, if you choose Google or Yandex as the provider. Both services are billed by their respective companies on a pay-per-use basis — the add-on licence does not cover these costs. The built-in session cache minimises the number of API calls, but charges from Google or Yandex will still apply based on your traffic. If you want zero third-party costs, choose the OpenStreetMap provider — it is completely free (public Nominatim server) or can be self-hosted.

Q: What happens if the map provider is temporarily unavailable?
A: Enable "Fallback to OpenStreetMap on provider error". If Google or Yandex fails, the add-on automatically switches to OpenStreetMap so shipping cost is always calculated.

Q: Will it slow down my checkout?
A: No. Results are cached in the cart session (TTL is configurable). The distance API is called only when the address changes; all subsequent requests within the session use the cached value.

Payment type
One-time payment
Product
  • Store Builder
  • Store Builder Ultimate
  • Multi-Vendor
  • Multi-Vendor Plus
  • Multi-Vendor Ultimate
Compatible versions
  • 4.20.1
  • 4.19.1.SP2
  • 4.19.1.SP1
  • 4.19.1
  • 4.18.4
  • 4.18.3
  • 4.18.2.SP1
  • 4.18.2
  • 4.18.1.SP1
  • 4.18.1
  • 4.17.2.SP3
  • 4.17.2.SP2
  • 4.17.2.SP1
  • 4.17.2
  • 4.17.1
  • 4.16.2
  • 4.16.1
  • 4.15.2
  • 4.15.1.SP4
  • 4.15.1.SP3
  • 4.15.1.SP2
  • 4.15.1.SP1
  • 4.15.1
  • 4.14.3.SP1
  • 4.14.3
  • 4.14.2.SP1
  • 4.14.2
  • 4.14.1.SP1
  • 4.14.1
  • 4.13.3
  • 4.13.2.SP2
  • 4.13.2.SP1
  • 4.13.2
  • 4.13.1
  • 4.12.2
  • 4.12.1
  • 4.11.5
  • 4.11.4
  • 4.11.3
  • 4.11.2
  • 4.11.1
  • 4.10.4.SP1
  • 4.10.4
  • 4.10.3
  • 4.10.2
  • 4.10.1
  • 4.9.3
  • 4.9.2
  • 4.9.1
  • 4.8.1
  • 4.8.2
  • 4.7.3
  • 4.7.2
  • 4.7.1
  • 4.7.4
  • 4.6.2
  • 4.6.1
  • 4.6.3
  • 4.5.1
  • 4.5.2
  • 4.4.2
  • 4.4.1
  • 4.4.3
Localizations
  • English
  • Русский
Anonymous
Comment
Good solution for me. I had an issue and they fixed it quickly, and I am very happy with their service. Possible improvement is that the distance is as the bird flys rather than by road route.
Kiryl
Comment
Great add-on, helped us a lot. Works pretty stable, no issues. The Alt Team helpdesk is very responsive and ready to help!
Artak
Comment
Spared no expense for this add-on! Good work, no errors, and very useful features that help in m y business area. Clients should be informed about the full delivery cost. It prevents from the refunds in the future.
Tonya Madden
Comment
This is a great option for help in calculating shipping costs. Wonderful tech support who was very expeditious in helping me resolve an issue that I had.
Иван
Comment
Отличный модуль с широким функционалом. Решает поставленную задачу на 100%. Багов за длительное время использования не замечено.
Alt-team is one of the most experienced team of CS-Cart developers. Starting to provide the online

Contact information

Alt-team is one of the most experienced team of CS-Cart developers. Starting to provide the online store development service in 2010, we released more than 100 add-ons for CS-Cart and MultiVendor editions. We fulfilled over 3500 projects on CS-Cart solution.

Our%20services%201.png?1600272957861

OUr%20cases%20(1).png?1600274735443

Alt-team is a team of talented PHP developers with 10+ years of experience with CS-Cart.

If you have any questions to us, please get in touch at manager@alt-team.com. We appreciate all our clients and are always glad to help!

Similar products

Custom Shipment Carriers Tracking for CS-Cart
5.0 (5)
$39.00
This shipping carrier's tracking service makes easy for user to expedite the shipment tracking flow and delight the customers
Integration with InPost by ShipX
5.0 (5)
$249.00
Extension to CS-Cart and Multi-Vendor integrates your store with InPost system through protocol ShipX. Add-on supports Paczkomaty 24/7 and other pickup points, and also InPost Courier.
Make purchases for 200$ from our entire offer and get 20% discount.
Mega Wishlist (improve WishList add-on)
5.0 (5)
$39.00
makes the standard wishlist add-on modern and useful, you can immediately see which products have been added and can be removed from the list
Order Status Tracker for CS-Cart
5.0 (2)
$59.00
This add-on empowers customers to seamlessly track their order status directly from the order details page through a smooth, interactive experience.
It features three professionally designed infographic tracking layouts that deliver a clear, modern, and visually engaging order status presentation.
Пункты выдачи в карточке товара и списке магазинов
5.0 (2)
$73.70
Модуль добавляет способы доставки и выводит пункты выдачи прямо в карточке товара и в списке магазинов.