[][src]Module google_maps::geocoding

The Geocoding API is a service that provides geocoding and reverse geocoding of addresses.

Geocoding is the process of converting addresses (like a street address) into geographic coordinates (like latitude and longitude), which you can use to place markers on a map, or position the map.

Reverse geocoding is the process of converting geographic coordinates into a human-readable address.

You can also use the Geocoding API to find the address for a given place ID.

Get Started

Start coding with our client libraries

Client libraries make developing with the Google Maps web service APIs easier by providing simple, native implementations of common tasks, such as authentication, request throttling and automatic retry. The Geocoding API is available in the Java Client, Python Client, Go Client and Node.js Client for Google Maps Services.

Authentication, quotas, pricing, and policies

Activate the API and get an API key

To use the Geocoding API, you must first activate the API in the Google Cloud Platform Console and obtain the proper authentication credentials. You need to provide an API key in each request (or a client ID if you have a Premium Plan.

Click the button below to flow through a process where you will:

  1. Create or select a project
  2. Enable the API
  3. Get an API key

Get Started

Learn more about authentication credentials.

Quotas and pricing

Review the usage and billing page for details on the quotas and pricing set for the Geocoding API.

Policies

Use of the Geocoding API must be in accordance with the API policies.

Learn more

There’s more you can do with the Geocoding API. See the Geocoding API developer guide for additional demos, examples, available parameters, status codes and error messages, and other details.

The Geocoding API developer guide describes the Geocoding API web service. It is intended for website and mobile developers who want to use geocoding data within maps provided by one of the Google Maps Platform APIs.

Modules

error

Resources (enums, traits) for the client to handle Geocoding API errors.

forward

Resources (enums, structs, methods) for the client to build a Geocoding API request for the Google Cloud server. Forward geocoding converts an address to a latitude/longitude.

location_type
response

Resources (enums, structs) for the client process the Geolocation API response from the Google Cloud server.

reverse

Resources (enums, structs, methods) for the client to build a Reverse Geocoding API request for the Google Cloud server. Reverse geocoding converts a latitude/longitude to an address.