Created
May 9, 2011 21:39
-
-
Save samdelagarza/963475 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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