I’ve gotten a lot of requests on how to use the Google Maps Matrix API, so here it is! It’s very simple. Basically, just call the URL below and voila!
https://maps.googleapis.com/maps/api/distancematrix/xml?origins= %%%Starting Address%%%&destinations= %%%delivery addresss%%%&key=YOUR_API_KEY
Remove %%% and add your dynamic fields.