sgruhier / jquery-addresspicker

JQuery UI widget : address autocomplete field by google maps V3 geocoding service
xilinus.com/jquery-addresspicker/demos/index.html
592 stars 221 forks source link

Configure to find cities only. #48

Open mrcmorales opened 11 years ago

mrcmorales commented 11 years ago

Hi,

Is possible configure addresspicker to obtain only cities ?

Thanks

Regards

mrcmorales commented 11 years ago

ping @sgruhier :) Thanks!

sgruhier commented 11 years ago

Sorry pretty busy these days, I cant look at it now

mtobias commented 10 years ago

+1

ghost commented 10 years ago

I'm keen to use this too, and I had a go at implementing it without success (I'm a Rails developer). I'll keep trying, because I don't think it's that hard.

It looks like the option we need to pass is "types", documented here: https://developers.google.com/places/documentation/autocomplete#place_autocomplete_requests under "optional parameters". It appears we're already passing the "components" option, so I'm modelling my code on that.

Any assistance appreciated!

mrcmorales commented 10 years ago

+1