Add a parameter to a google maps geocoder funcion
- by kree
I want to create a geocoder function, which write the result to it's parameter.
function geoCode(latlng,div) {
gc.geocode({'latLng': latlng}, function (result, status) {
if (status == google.maps.GeocoderStatus.OK) {
new google.maps.Marker({
position: result[0].geometry.location,
map: map
});
jq(div).html(result[0].formatted_address);
}
});
How can I add the div parameter to the geocoder function?
Any help would be appreciated.