지도에 표시하기 위해 Google지도에서 주소를 지오 코드로 작업하고 있습니다. 각 주소를 반복하고 jquery를 통해 콜백을 통해 응답을 처리합니다.콜백에서 객체 식별
콜백이 발생한 항목을 어떻게 식별 할 수 있습니까?
var geocoder = new google.maps.Geocoder();
geocoder.geocode({ 'address': addr }, function (results, status) {
if (status == google.maps.GeocoderStatus.OK) {
var marker = new google.maps.Marker({ position: results[0].geometry.location, map: map, title: "Yo Homie" });
// I need to find the item to setup the infowindow
bounds.extend(results[0].geometry.location);
map.fitBounds(bounds);
}
else {
// eat it like a mexican jumping bean
}
});