skynet2 / ngx-google-places-autocomplete

Google Places autocomplete for angular web project
MIT License
91 stars 76 forks source link

How to use option code #26

Open harshitraghav opened 5 years ago

harshitraghav commented 5 years ago

I'm working in Angular7 and I have three input fields one for the city name, one for a venue and one for the address of the venue selected. Can you help me with how to use options here to get the desired output. The second option is straightforward but I need help for the first and the third input.

skynet2 commented 5 years ago

Hi @harshitraghav ,

Can you show an example? Do you have a UI with 4 input boxes, one of them is google places autocomplete, and when a client selects a value in google places autocomplete you should parse the result into 3 different boxes?

Thanks, Stas

harshitraghav commented 5 years ago

Sorry I can't show you the design but yeah there are three different input boxes, all three with google places autocomplete and I want to apply different filters on them. For the first one, I only want to show cities when the user starts typing. For the second one, the user selects the venue and address of that value is to be shown in the third input box. So basically: First box: City Second box: Venue Third box: Address of the venue

harshitraghav commented 5 years ago

Can anyone help?