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

Document regionBiais. What's this option for ? #14

Closed tristanbes closed 12 years ago

tristanbes commented 12 years ago

Hi,

Recently in ur commit u added regionBiais. What's the goal of that option ?

sgruhier commented 12 years ago

Google will explain it better than me :)

https://developers.google.com/maps/documentation/geocoding/#RegionCodes

palodelincak commented 12 years ago

Hello, is possible to limit quering for one country only?

sgruhier commented 12 years ago

You can't do that with google but you can limit to a given bounds

https://developers.google.com/maps/documentation/geocoding/#Viewports

the doc says: Note that biasing only prefers results within the bounds; if more relevant results exist outside of these bounds, they may be included

If you are interested by adding that options, please fork and pull a request Thanks

palodelincak commented 12 years ago

Thanks!

muirin commented 12 years ago

Well, I'm trying to limit autocomplete hints for one country only (or, at least, to prefer one country) - Poland.

In example - I'm searching for "Kraków". [Cracow, Poland]

I'm typing: 'Kra' and there are such hints as: Krae, Tajlandia (Thailand) Kerang Airport (KRA), Kerang Wiktoria 3579, Australia

I have to type 'Krakó' to get a proper hint: Kraków, Polska (Poland)

I just don't need autocompleting with cities from Thailand, USA, France, etc. - i need cities from Poland.

Setting region (http://maps.google.com/maps/api/js?sensor=false&region=pl) or address/bounds influences only on results, not autocomplete hints.

Could you give me any hints?

(sorry for my english :) )