Using the AutoComplete feature of Google Maps has been quite helpful for me.
Upon selecting a location from the list, I am able to retrieve the place using the autoComplete.getPlace() function. One of the variables within this function is adr_address and its value is formatted like so:
"<span class="street-address">xxx</span>, <span class="locality">xxx</span>, <span class="country-name">xxx</span>"
The issue arises when I manually input the address instead of choosing it from the list. In such cases, the adr_address variable is not available in the getPlace function. To work around this, I verify the address using Geocoder. If the status returned by Geocoder is OK, I want to obtain a similar result as the one provided by adr_address.
Is there a way to achieve this?