Skip to content

Instantly share code, notes, and snippets.

@raytiley
Created April 22, 2012 21:24
Show Gist options
  • Save raytiley/2467018 to your computer and use it in GitHub Desktop.
Save raytiley/2467018 to your computer and use it in GitHub Desktop.
Design Phase 4 - GeoCoding Module
//Anything not exported would be private and not accessible from the loaded module.
var privateVariable = 'I would be hidden';
//Public Method
//Async geocodes array of search strings and calls callback with array of response when finished
exports.geocode = function(searchArray, callback(responseArray)) {
// Asynchronously geocode search array then execute callback
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment