My Business
1.7K members online now
1.7K members online now
Follow threads that discuss the latest tips on how to get your business online… for free!
Guide Me
star_border
Reply

How to calculate mileage shipping rate using Maps API

[ Edited ]
Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi all,

 

I have a shed manufacturing business and I deliver them up to 300 miles away.  I sell them in an online store, https://ksshedbuilder.com

 

I wrote a custom shipping module that queries the Google Maps API for the road mileage from my postal code to a customer's postal code, and multiplies this distance to compute the delivery fee for a building.  Additionally, I give my local customers free delivery (up to 60 miles away).  Also, to make it more complex, I specify in the query to avoid highways (interstate highways in the US), as these buildings are typically oversize loads.

 

I'm trying to set up Shipping in the Google Merchant Center to match this, but have been unsuccessful so far.  Can anyone tell me how to do this?

 

Thanks,

 

James