Creates a geocoder to turn addresses into coordinates.
class Maps method .newGeocoder()
Maps is the Apps Script service.
.newGeocoder() is the method name you will see after a dot in your code.
What it does
Why it's used
- Turn street addresses into lat/long for mapping or routing.
- Validate addresses before shipping or scheduling field work.
Common errors
- Forgetting parentheses on newGeocoder. Write Maps.newGeocoder(), not Maps.newGeocoder or newGeocoder by itself.
- Skipping dots between chained calls. Each step needs a dot, like Maps.newGeocoder().
- Adding spaces where they do not belong. Write Maps.newGeocoder(), not Maps .newGeocoder(), Maps.newGeocoder (), or Maps . newGeocoder().
- Wrong capitalization. Use Maps and newGeocoder, not maps or newgeocoder.
Explore
Related methods
-
.newDirectionFinder()
Creates a directions helper to plan routes between places.
-
.newStaticMap()
Creates a static map image from locations and markers.
More Apps Script
Better Sheets tutorials
No tagged tutorials yet. Fetch Apps Script from the harvest table and this page fills automatically.
Related blog posts
Written guides about Maps.newGeocoder().
What's Better Than Google Sheets?
Nothing is better than Google Sheets. You just need to learn more about the unlimited power of Google Sheets. Functions, Formulas, Apps Script and more.
Read post →How to Get a Google Maps API Key for Free (Step by Step)
How to get a Google Maps API key in Google Cloud, step by step with a screenshot of every screen. The key is free, Places API (New) gives you 1,000 free searches a month, and it's the key Local Lead Finder needs.
Read post →How to Send Google Forms Entries Automatically with Apps Script
Google Forms provides basic email notifications for form submissions, but enhancing these notifications with detailed summaries can significantly improve productivity and response management.
Read post →