This method performs an address geocode, which maps an address to a LatLng. It also provides structured information about the address.
HTTP request
GET https://geocode.googleapis.com/v4beta/geocode/address/{addressQuery}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
Union parameter address_input . The address to geocode. address_input can be only one of the following: | |
addressQuery |
The unstructured address to geocode. |
Query parameters
Parameters | |
---|---|
locationBias |
Optional. The region to search. This location serves as a bias which means results around given location might be returned. |
languageCode |
Optional. Language in which the results should be returned. |
regionCode |
Optional. Region code. The region code, specified as a ccTLD ("top-level domain") two-character value. The parameter affects results based on applicable law. This parameter will also influence, but not fully restrict, results from the service. |
Union parameter address_input . The address to geocode. address_input can be only one of the following: | |
address |
The structured address to geocode in postal address format. |
Request body
The request body must be empty.
Response body
If successful, the response body contains an instance of GeocodeAddressResponse
.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-platform
https://www.googleapis.com/auth/maps-platform.geocode
https://www.googleapis.com/auth/maps-platform.geocode.address