Geocoder

Geocoder class

google.maps.Geocoder class

A service for converting between an address and a LatLng.

Access by calling const {Geocoder} = await google.maps.importLibrary("geocoding").
See Libraries in the Maps JavaScript API.

Geocoder
Geocoder()
Parameters:  None
Creates a new instance of a Geocoder that sends geocode requests to Google servers.
geocode
geocode(request[, callback])
Parameters: 
Return Value:  Promise<GeocoderResponse>
Geocode a request.

GeocoderRequest interface

google.maps.GeocoderRequest interface

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

address optional
Type:  string optional
Address to geocode. One, and only one, of address, location and placeId must be supplied.
bounds optional
Type:  LatLngBounds|