The unstructured street address that is contained inside a region to
match. region_code
is required when address is specified.
The BCP-47 language code, such as "en-US" or "sr-Latn", corresponding to the language in which the place name and address is requested. If none is requested, then it defaults to English.
The BCP-47 language code, such as "en-US" or "sr-Latn", corresponding to the language in which the place name and address is requested. If none is requested, then it defaults to English.
The latitude and longitude that is contained inside a region to match.
The Place ID that is contained inside a region to match.
Place type to match.
Two-letter ISO-3166 country/region code for the location you're trying to match. region_code is optional if place_type is "country".
Generated using TypeDoc
Desired search values of a single region.
Location must be specified by one of the following:
address
,latlng
orplace_id
. If none is specified, an INVALID_ARGUMENT error is returned.region_code
must also be provided whenaddress
is specified.The fields
address
,latlng
andplace_id
specify a location contained inside the region to match. For example ifaddress
is "1600 Amphitheatre Pkwy, Mountain View, CA 94043" the API returns the followingmatched_place_id
results when the following place_types are specified:place_type
:matched_place_id
results: postal_code Place ID for "94043" administrative_area_level_1 Place ID for The State of California administrative_area_level_2 Place ID for Santa Clara CountyMore Examples:
If
latlng
is "latitude: 37.4220656 longitude: -122.0862784" andplace_type
is "locality", the result contains the Place ID (of type "locality") for that location (the Place ID of Mountain View, CA, in this case).If
place_id
is "ChIJj61dQgK6j4AR4GeTYWZsKWw" (Place ID for Google office in Mountain view, CA) andplace_type
is "locality", the result contains the Place ID (of type "locality") for that location (the Place ID of Mountain View, CA, in this case).If no match is found,
matched_place_id
is not set.