Shipping Costs Based on Distance for Magento 2
4.5 2 Based on 2 reviews




Precisely Calculate Shipping Costs Based on Distance Using the Google Maps API
Take full control of your shipping costs with our Magento 2 extension, a powerful tool designed to calculate precise delivery charges based on the exact distance to your customer’s address. By leveraging the robust Google Maps API, this extension dynamically computes shipping rates using the actual transport route rather than the straight-line distance—ensuring accurate, real-world pricing. This is especially beneficial whether you operate locally or offer inhouse shipping, as you can always rely on the most precise cost estimates.
The extension ensures fair and consistent pricing that aligns with the real distance traveled, eliminating guesswork and overcharges. Thanks to its flexible configuration settings, you can create tailored shipping strategies that account for local deliveries, cross-border shipping, or any other logistical requirement. Its built-in localization options allow you to adapt seamlessly to different regions, while the error-handling features ensure smooth, uninterrupted calculations during checkout.
With this extension, your Magento 2 store will be equipped with a streamlined and reliable shipping cost calculator, saving you time, increasing accuracy, and enhancing customer satisfaction.
Google Maps API Key
Please keep in mind that an active Google API Key for Google Maps is needed to use this extension. The good news is that Google provides a free tier for normal usage, allowing most small to medium-sized businesses to benefit from distance-based calculations without additional costs

Set the Calculation Methods

Set your Limits

Offer Distance Shipping Method


Be transparant about your Delivery Costs
Whether you handle your own deliveries or partner with external couriers, this extension is a game-changer for your Magento 2 webshop. With its dynamic distance-based calculations, you’ll never have to second-guess your shipping rates. The extensive customization options give you complete control to configure rates exactly as you need—ensuring you charge appropriately, no matter the distance.
Show the Shipping Cost Estimation on the Product Page
Easily add a shipping calculator directly to your product page, allowing customers to enter their postal code and instantly see the estimated shipping costs. This feature streamlines the delivery process and boosts conversion rates by providing clarity and convenience during the purchasing journey.
Tailored Experience with Advanced Shipping Options
The Shipping Costs Based on Distance extension offers all the features you need to customize your shipping calculations with ease. Key options include:
- Set your store or warehouse address as the starting point.
- Choose to calculate distances in kilometers or miles.
- Customize your shipping rate calculation methods.
- Combine variable rates per kilometer with fixed base fees.
- Set maximum allowable delivery distances to avoid costly long-haul shipments.
- Automatically check and validate addresses, with error messages if an address is unrecognizable.
These flexible configurations let you tailor your shipping strategy to fit any business model, whether you operate locally or on a global scale.


Flexible Shipping Rules to Match Your Needs
This extension stands out due to its versatility and adaptability. No matter how complex your shipping requirements are, you can configure them with just a few clicks. Do you need separate rates for short and long distances? Want to waive fees for orders above a certain amount? No problem. Customize everything to match your needs with filters and limits such as:
- Free shipping: Set a minimum order amount above which shipping is free.
- Minimum and maximum shipping costs: Ensure your charges fall within a predefined range.
- Set by country: Enable or disable the shipping method based on specific regions.
- Limit per order amount: Restrict the method to orders within a certain price range.
- Limit to distance: Define the maximum distance for eligibility.
With these options, you can create a seamless shipping experience that fits your business and customer expectations.
Global Reach with Detailed Insights
Expand your reach with confidence, knowing that this extension calculates shipping costs accurately no matter where your customers are. Whether you deliver locally or globally, you can easily configure shipping availability by region and ensure that rates are calculated appropriately for each location.
Every shipping calculation and Google Maps API request is logged, providing transparency and allowing you to troubleshoot any potential issues. Quickly see how the distance was calculated or why a shipping option wasn’t displayed. This level of visibility helps you maintain a smooth and reliable shipping process.
Take the guesswork out of distance-based shipping with a powerful extension that offers accuracy, flexibility, and global scalability—all built directly into your Magento 2 store.

2 of many customers
Rate this plugin with 9 out of 10
Perfect!
Excellent App, support and guidance
Knowledgebase
All familiar Help articles
A list of the most frequently asked questions from the Shipping Costs Based on Distance extension for Magento 2. We've tried our best to help you with the installation, configuration and troubleshooting. If you do not find the answer you were looking for, you can always send us a message through this form.
Configuration
Configure the extensionChangelog 1.6.1 is released on 17 February 2025
Our plugins are regularly updated to ensure compatibility with the latest Magento release.
-
Improvements:
- Implemented additional validation checks when saving shipping price tiers from the admin panel to ensure data accuracy
- Small code refactor on carriers model Requirements:
- Magento 2.3.x and up
- PHP 7.4 and up
-
Improvements:
- Refactored frontendend implementation
- Updated Admin UI Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Changes:
- Added support for PHP 8.2 Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Changes:
- Removed dependency on quote/session and use data or request Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added shipping price estimation option on Product Page Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Make Logger component compatible with Monolog 2.0 Changes:
- Run Magento Coding Standard code sniffer on severity 6 + fixed violations Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added support for orders created through the admin Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Enabled setting Title and Method Name on store level Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
-
Features:
- Added API check button in system configuration to validate Google API key Requirements:
- Magento 2.2.x and up
- PHP 7.x and up
100% Unencrypted Code quality guaranteed.

Adobe Commerce Marketplace Approved
Trust and reliability are at the core of our offerings, which is why we're proud to be listed on the official Adobe Marketplace. Being Adobe-approved means our plugins have undergone rigorous testing to meet Magento Marketplace standards for quality, performance, and security.
This approval assures you that our solutions are built to integrate smoothly with your Magento 2 store, delivering reliable functionality every time. By choosing an Adobe-approved plugin, you're investing in a product backed by a commitment to excellence and adherence to Magento's best practices. Rest easy knowing you're using a solution recognized by the very platform it serves.

Hyvä Compatible Plugin
Hyvä Themes have revolutionized Magento 2 frontends with their focus on simplicity, speed, and developer-friendly architecture. We're excited to share that our plugin is fully compatible with Hyvä, ensuring your Google Reviews and widgets blend perfectly into this modern framework.
Our widgets are designed to complement Hyvä's minimal and high-performance ethos, delivering a fast and visually stunning experience for your customers. No matter where you decide to display your reviews, you can rest assured they'll load seamlessly without compromising speed or aesthetics. With Hyvä support, you're not just adding functionality—you're enhancing your user experience.

GraphQL Made Ready
Magento 2's GraphQL API is a game-changer for modern e-commerce development, enabling fast, flexible, and efficient data retrieval. We're proud to announce that our plugin fully supports GraphQL, making it easier than ever to integrate with headless frontends or custom applications.
With GraphQL, you can query exactly the data you need in a single request, improving performance and reducing overhead. Our plugin integrates seamlessly with Magento's GraphQL schema, ensuring you can fetch review data, widget configurations, and other key functionalities programmatically. Whether you're building a PWA or need a custom interface, our GraphQL support ensures you stay future-ready.

Magento Cloud Support
Running your Magento 2 store on Magento Cloud? Great news! Our plugin is fully compatible with the Magento Cloud version, ensuring seamless integration with your cloud-hosted environment. Magento Cloud offers a robust, scalable, and secure platform designed to meet the needs of modern e-commerce businesses. With our plugin, you can enjoy all the features and benefits without worrying about compatibility issues.
Whether you're leveraging Magento Cloud's auto-scaling capabilities or its extensive suite of developer tools, our plugin fits right in. We've optimized the functionality to align perfectly with the unique architecture of Magento Cloud, giving you a worry-free experience. From streamlined deployment to smooth operations, you can count on our solution to work flawlessly in the cloud.

Private Composer Repo
Say goodbye to manual downloads and cumbersome updates! Upon purchasing our plugin, you'll gain instant access to your own private Composer repository. With personalized credentials, you can easily install and update the plugin directly from Composer, simplifying your development workflow.
Composer integration ensures that your Magento 2 store stays up-to-date with the latest features and improvements from our team. No need to worry about compatibility issues or missing files—everything you need is just a command away. Our private repository is your gateway to effortless management, ensuring your store runs smoothly and efficiently.