function GOOGLEMAPS(lat, long) {
var apiKey = "YOUR_API_KEY";
var response = UrlFetchApp.fetch("https://maps.googleapis.com/maps/api/geocode/json?latlng=" + lat + "," + long + "&key=" + apiKey);
var json = JSON.parse(response.getContentText());
if (json.status == "OK") {
return json.results[0].formatted_address;
} else {
return "Error: " + json.status;
}
}