function geoCode(addr){ var gc = Maps.newGeocoder(); var geoJSON = gc.geocode(addr); var lat = geoJSON.results[0].geometry.location.lat; var lng = geoJSON.results[0].geometry.location.lng; return lat + ", " + lng; }