简体   繁体   中英

Google Places Autocomplete API restrict country stopped working

I am running an google place auto complete item.

I placed a restriction to output only address on a particular country. using the componentRestrictions: {country: 'fr'} code.

This worked very fine, until 25 July 2012. The country restriction failed and all address are now suddenly displayed.

I have gone back to test the sample code on google map website https://developers.google.com/maps/documentation/javascript/places#places_autocomplete

and loaded it on http://jsfiddle.net/csdk3/

and I still get all address without restricted country.

Will appreciate if I could get some help.

Thanks.

There was a bug which was recognized, and subsequently fixed by Google.

Demo is working now. (Australian locations only)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM