background preloader

Map reverse geocoding

Facebook Twitter

The Google Geocoding API - Google Maps API Web Services. This document discusses the Geocoding API v3.

The Google Geocoding API - Google Maps API Web Services

Note that the Geocoding API v2 has been turned down and is no longer available. Users of the Geocoding API v2 service should upgrade to v3. Looking to use this service in a JavaScript application? Check out the Geocoder class of the Google Maps API v3. What is Geocoding? Geocoding is the process of converting addresses (like "1600 Amphitheatre Parkway, Mountain View, CA") into geographic coordinates (like latitude 37.423021 and longitude -122.083739), which you can use to place markers or position the map. Reverse geocoding is the process of converting geographic coordinates into a human-readable address. The Google Geocoding API provides a direct way to access a these services via an HTTP request. Class Geocoder - Google Apps Script. Reverse Geo-coding. Version 2 of the JavaScript API has been turned down Warning: Version 2 of the Google Maps JavaScript API is no longer available.

Reverse Geo-coding

Please follow the guide to migrate your code to version 3 of the Google Maps JavaScript API. As of November 19, 2013, all applications requesting v2 are served a special, wrapped version of the v3 API instead. We expect this wrapped version of the API to work for most simple maps, but we strongly encourage you to migrate to the v3 API immediately.

The Google Maps API is regularly extended, adding new functionality and features that are often released on maps.google.com first. The Google Maps API exports a factory method for creating browser-neutral XmlHttpRequest() objects that work in recent versions of Internet Explorer, Firefox, and Safari. Var request = GXmlHttp.create();request.open("GET", "myfile.txt", true);request.onreadystatechange = function() { if (request.readyState == 4) { alert(request.responseText); }}request.send(null); Geocoding Service - Google Maps JavaScript API v3. Overview Geocoding is the process of converting addresses (like "1600 Amphitheatre Parkway, Mountain View, CA") into geographic coordinates (like latitude 37.423021 and longitude -122.083739), which you can use to place markers or position the map.

Geocoding Service - Google Maps JavaScript API v3

Reverse geocoding is the process of converting geographic coordinates into a human-readable address. The Google Maps API provides a geocoder class for geocoding and reverse geocoding dynamically from user input. When you first load the API, you will be allocated an initial quota of Geocoding requests. Once you have used this quota, additional requests will be rate-limited on a per-second basis. Geocoding Requests Accessing the Geocoding service is asynchronous, since the Google Maps API needs to make a call to an external server. You access the Google Maps API geocoding service within your code via the google.maps.Geocoder object.

The GeocodeRequest object literal contains the following fields: These fields are explained below.