My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 3899: Allow to limit autocomplete by Country
10 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  [email protected]
Closed:  May 2012


Sign in to add a comment
 
Reported by [email protected], Feb 7, 2012
What would you like to see us add to this API?

Providing a way to limit autocomplete by Country would be extremely useful - if I want my users to enter a street in Canada I don't want them to see 'Australia' as an option when trying to type in 'Au(gusta Ave)'

Thanks!!

*********************************************************
For developers viewing this issue: please click the 'star' icon to be
notified of future changes, and to let us know how many of you are
interested in seeing it resolved.
*********************************************************

Feb 7, 2012
#1 [email protected]
Can you tell us why you need this in addition to bounds biasing?

If you don't know about bounds biasing, see here:
https://code.google.com/apis/maps/documentation/javascript/places.html#places_autocomplete

I find it works really well.
Feb 14, 2012
#2 [email protected]
I find I have the same issue with the bounds biasing that it doesn't respect the country bounds.  Using the above link and the example code: https://code.google.com/apis/maps/documentation/javascript/examples/places-autocomplete.html 

If I start typing "auck" for Auckland New Zealand, or "per" for Perth it shows up Perth, and Peru whereas if you look in the bounds it's only Sydney.  Those other results shouldn't be coming up first or even at all if the bounds are restricting to where the viewport is.  The same applies if you specify the bounds too.
Mar 21, 2012
#3 [email protected]
Bounds biasing seems to work if you make a really small boundary within the country you want to restrict to but it still brings up countries as preference, so for Canberra, Australia you have to type in Canb to get past Canada being the #1 entry. 

jquery options all seem much slower so a native solution would be nice, please. 
May 14, 2012
#4 [email protected]
Country filtering is now supported for Autocomplete:

http://googlegeodevelopers.blogspot.com.au/2012/05/faster-address-entry-with-google-places.html
Status: Fixed
Jun 18, 2012
#5 [email protected]
Brilliant. Thanks for this. 
Jun 18, 2012
#6 [email protected]
yes, thank you very much. 
Jan 30, 2013
#7 [email protected]
Hi,
Is there any hope to get support for multiple countries ? Be able to get results for both Australia and New Zealand  would be useful.
Do you plan to add this feature ?
Thank you
Sign in to add a comment

Powered by Google Project Hosting