Take a look at the Distance Matrix API, it’s great if you have more complex use cases rather than a single origin to a single destination.
Blog post "How to Use Distance Matrix API" → https://goo.gle/36HvMMk
Distance Matrix API documentation → https://goo.gle/2SD4Zsh
Distance Matrix service in Maps JavaScript API documentation → https://goo.gle/3d7HzEC
Watch more Geocasts → https://goo.gle/Geocasts
Subscribe to Google Maps Platform → http://goo.gle/GMapsPlatform
#Geocasts #DistanceMatrixAPI