I have an array where I store location addresses and the array contains the following values:

217 Pacific Avenue,Toronto,M6P 2P7,Ontario
20 Eglinton Avenue West Suite 2100, Box 2014,Toronto,M4R 1K8,Ontario
45 Sunrise Ave Apt # 415,Toronto,M4A2S3,Ontario

I am trying to get LatLng values for each value but I am always getting (43.6594037, -79.4659595) value for all values in the array.

Code:
for(var i = 0; i < AddressArray.length; i++)
{
	geocoder = new google.maps.Geocoder();							
							
	if(geocoder)
	{						
		geocoder.geocode({'address' : AddressArray[i]}, function(results, status) {
			if (status == google.maps.GeocoderStatus.OK) 
			{
				alert(results[0].geometry.location);
			} else 
			{
				alert("Geocode was not successful for the following reason: " + status);
			}			
		});
	}
}