-1
私はstackoverflowの答えを見てきましたが、それを動作させるように見えることはできません。このコードスニペットは、何にもVAR「POS」を設定していません:VarがGoogleのlatlng APIを使用して設定されていません。
var geocoder= new google.maps.Geocoder();
var pos = geocoder.geocode({'address': getCookie('banner-location')}, function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
return {lat: results[0].geometry.location.lat(), lng: results[0].geometry.location.lng()};
} else {
return {lat: 0, lng: 0};
}
});