by Kaleem Ullah on WordPress.org
Restrict WooCommerce shipping based on distance from your store location using Google Maps Distance Matrix API.

Plugin settings page
Ship Distance is a powerful plugin that allows you to limit shipping to addresses within a specified distance from your store location. Key features include:
When a customer proceeds to checkout, the plugin:
– Calculates the distance between the store and shipping address
– Blocks checkout if the distance exceeds your specified limit
– Displays a customized error message
This plugin connects to the Google Maps Distance Matrix API to calculate the distance between the store and the customer’s shipping address. This is necessary to determine if the customer’s location is within the allowable delivery distance set by the store owner.
Data Sent:
Store’s latitude and longitude (provided by the store owner in the plugin settings).
Customer’s shipping address (entered by the customer during checkout).
When Data is Sent:
Service Provider:
Service: Google Maps Distance Matrix API
Terms of Service: https://cloud.google.com/maps-platform/terms/
Privacy Policy: https://policies.google.com/privacy
This disclosure ensures compliance with privacy and legal guidelines and allows users to understand the nature of the data exchange with Google Maps services.
The plugin is translation-ready. If you’re interested in translating the plugin, please contact the author.
For support, feature requests, or bug reports, please visit:
https://kaleemullah.in/contact