Skip to content

Instantly share code, notes, and snippets.

@samdelagarza
Created May 9, 2011 21:39
Show Gist options
  • Save samdelagarza/963475 to your computer and use it in GitHub Desktop.
Save samdelagarza/963475 to your computer and use it in GitHub Desktop.
geocoder.geocode( { 'address': unitOfWork}, function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
var result = {};
result.address = unitOfWork.replace(/\+/g,' ');
result.location = results[0].geometry.location.b + ',' + results[0].geometry.location.c;
displayMarkerStack.push(results[0].geometry.location);
finishedStack.push(result);
$("body").trigger('addressComplete');
} else {
console.log("Geocode was not successful for the following reason: " + status);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment