how to give list of suggested address if entered address is not valid according to google maps.?
I have implemented a functionality where I cna check if the address entered y user is valid or not, and I am able to get the correct result. Now I want to get the google suggestion for the correct address if there are any suggestions related to the entered one. If there are no suggestions, than a message of 'No suggestion found should be there'. Also until the user enters correct address, they cannot click on the Submit button.
How to get suggested list of addresses ? Also, how can I show warning message instead of alert messages ? If we get the suggested list, how to populate the selected address value to each field like street address, city, state, country, zip. I have seen the Google APIs tutorials, but none of them shows the suggested list of addresses if it's not valid. So asked this question. Thanks in Advance. Appreciate the help.