lukemadera / meteor-autoform-googleplace

Google Places Autocomplete input (without map). Returns an object with formatted address components
21 stars 19 forks source link

Options #7

Closed mats68 closed 9 years ago

mats68 commented 9 years ago

Can I just filter the dropdown so that it just displays cities ?

lukemadera commented 9 years ago

So rather than displaying addresses you just want cities? I would think so yes.

mats68 commented 9 years ago

Hello I tried this, but it still displays countries and other stuff:

optsGoogleplace: function () { return { googleOptions: { types: ['(cities)'], componentRestrictions: { country: "ch" } } } }

lukemadera commented 9 years ago

Working fine for me, demo updated below - the 2nd input only returns cities: http://lukemadera-packages.meteor.com/af-googleplace-basic

googleOptions: {
          types: ['(cities)'],
          componentRestrictions: { country:'us' }
        }