I'd like to retrieve a place's location based on the name and address in Google Sheets, something like:
=PlaceAddress("White House, Washington, DC")
=PlaceAddress("Moma, New York, NY")
=PlaceAddress("Google, Mountain View, CA")
which would return results as they (respectively) appear in Google search, i.e.:
1600 Pennsylvania Ave NW, Washington, DC 20500
11 W 53rd St, New York, NY 10019
1600 Amphitheatre Pkwy, Mountain View, CA 94043
The Maps Apps Script service has a geocoder, but this seems to require address, not place name. I'm guessing the solution involves either some functionality I missed from Apps Script, or something like the ImportData
function to get structured data from Google search or another service.