GoogleMaps geocode lookup

GoogleMaps API officially states that they don't provide a geocoder or route lookup via their API. A geocoder is a service that translates a name into geo coordinates like latitude and longitude.

The most popular and well-known geocoders are geocoder.us and Mikel Maron's geocoder.

However, you can actually do a geocode query on GoogleMaps:


http://maps.google.com/maps?output=js&q=northville+mi

The result is an HTML page containing javascript with the location (and nearby locations). You can then parse this output to retrieve the latitude & longitude.




Northville, MI 48167






About this article

written on
posted in ProgrammingGeolocationWebJavascript Back to Top

About the Author

Andrew Turner is an advocate of open standards and open data. He is actively involved in many organizations developing and supporting open standards, including OpenStreetMap, Open Geospatial Consortium, Open Web Foundation, OSGeo, and the World Wide Web Consortium. He co-founded CrisisCommons, a community of volunteers that, in coordination with government agencies and disaster response groups, build technology tools to help people in need during and after a crisis such as an earthquake, tsunami, tornado, hurricane, flood, or wildfire.