-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to verify if the input matches the selected address? #220
Comments
You can use |
@insaurabh thanks, but that's the issue. The formatted address is different to the input field's value. e.g. inputValue: '37 Bessemer Street, Kings Park NSW, Australia' They are slightly different. |
You can update the options: { and then on selection of address, create your own dropdown. |
How do I get the actual text that was suggested to the user? The text that becomes the input's value on select?
E.g. search for 50 Abbotts Road, Dandenong South VIC, Australia
That comes up as a suggestion.
The user selects it, but then changes Abbotts to Abbots.
I thought the
formatted_address
would be50 Abbotts Road, Dandenong South VIC, Australia
, and I could compare this to the input value to check if they changed it. But it's not. Theformatted_address
is50 Abbotts Rd, Dandenong South VIC 3175, Australia
.How do I validate this? How do I get the
50 Abbotts Road, Dandenong South VIC, Australia
?This seems to be a similar issue, but doesn't have an answer I could use with this library.
https://stackoverflow.com/questions/18454677/google-maps-api-how-do-you-ensure-that-the-google-maps-autocomplete-text-is-an
The text was updated successfully, but these errors were encountered: