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,latlngorplace_id. If none is specified, an INVALID_ARGUMENT error is returned.region_codemust also be provided whenaddressis specified.The fields
address,latlngandplace_idspecify a location contained inside the region to match. For example ifaddressis "1600 Amphitheatre Pkwy, Mountain View, CA 94043" the API returns the followingmatched_place_idresults when the following place_types are specified:place_type:matched_place_idresults: 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
latlngis "latitude: 37.4220656 longitude: -122.0862784" andplace_typeis "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_idis "ChIJj61dQgK6j4AR4GeTYWZsKWw" (Place ID for Google office in Mountain view, CA) andplace_typeis "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_idis not set.