Something like (not tested);
var location, map, objectID;
objectID = "dom-id";
// Your gMap
//
map = new google.maps.Map( document.getElementById( objectID ), {} );
// Put the following lines in your loop
//
geocoder.geocode({ "address" : the_address_to_map }, function( results, status )
{
if ( status == google.maps.GeocoderStatus.OK )
{
var latitude = results[ 0 ].geometry.location.lat()
, longitude = results[ 0 ].geometry.location.lng()
;
location = new google.maps.LatLng( latitude, longitude );
if( location )
{
var marker = new google.maps.Marker(
{
position : location,
title : "",
// other settings
});
marker.setMap( map );
}
}
});
There is a limit for calling this service.. I thought about 2500 requests a day, but you can look it up in your API console.