如何将Google地图自动完成搜索结果限制为仅巴基斯坦卡拉奇。 有我的代码。
`var options = {
componentRestrictions: {country: 'pk'}
};
var searchBox = new google.maps.places.Autocomplete(loc,options);
//google.maps.event.addListener(searchBox, 'places_changed', function ()
{
searchBox.addListener('place_changed', function () {
var place = searchBox.getPlace();
var bounds = new google.maps.LatLngBounds();
var a = place.geometry.location.lat();`