How to calculate mileage shipping rate using Maps API[ Edited ]
April - last edited April
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?