Google Sheets Get Distance & Time – GOOGLEMAPS Function

Add the following code to your Apps Script Editor first and then use the function.

How to Use GOOGLEMAPS Function?

Understand How This Script Works