AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

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

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,


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?