google-maps-documentation

GeocoderRequest interface

google.maps.GeocoderRequest interface

The specification for a geocoding request to be sent to the Geocoder.

Properties
address
Type:  string optional
Address to geocode. One, and only one, of address, location and placeId must be supplied.
bounds
LatLngBounds within which to search. Optional.
componentRestrictions
Components are used to restrict results to a specific area. A filter consists of one or more of: route, locality, administrativeArea, postalCode, country. Only the results that match all the filters will be returned. Filter values support the same methods of spelling correction and partial matching as other geocoding requests. Optional.
location
Type:  LatLng|LatLngLiteral optional
LatLng (or LatLngLiteral) for which to search. The geocoder performs a reverse geocode. See Reverse Geocoding for more information. One, and only one, of address, location and placeId must be supplied.
placeId
Type:  string optional
The place ID associated with the location. Place IDs uniquely identify a place in the Google Places database and on Google Maps. Learn more about place IDs in the Places API developer guide. The geocoder performs a reverse geocode. See Reverse Geocoding for more information. One, and only one, of address, location and placeId must be supplied.
region
Type:  string optional
Country code used to bias the search, specified as a Unicode region subtag / CLDR identifier. Optional.