Function: toAddress()
toAddress(
components):Address
Converts the address components to an address object. Original source code from https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete-addressform. Accepts Geocoder components, Places (New) components, or the shared AddressComponentLike shape.
Parameters
components
AddressComponentInput[]
the address components.
Returns
the address object.