function pointSender(location) {
      /**
       * Sends the point, then calls the callback after a delay
       * @param {function} callback Called when complete
       */
      return function(callback) {
        console.log('Visiting point ' + location.getLatitude()/COORD_FACTOR +
            ', ' + location.getLongitude()/COORD_FACTOR);
        call.write(location);
        _.delay(callback, _.random(500, 1500));
      };
    }
function pointSender(location) {
      /**
       * Sends the point, then calls the callback after a delay
       * @param {function} callback Called when complete
       */
      return function(callback) {
        console.log('Visiting point ' + location.getLatitude()/COORD_FACTOR +
            ', ' + location.getLongitude()/COORD_FACTOR);
        call.write(location);
        _.delay(callback, _.random(500, 1500));
      };
    }
function pointSender ( location ) { /**
       * Sends the point, then calls the callback after a delay
       * @param {function} callback Called when complete
       */ return function ( callback ) { console . log ( 'Visiting point ' + location . getLatitude ( ) / COORD_FACTOR + ', ' + location . getLongitude ( ) / COORD_FACTOR ) ; call . write ( location ) ; _ . delay ( callback , _ . random ( 500 , 1500 ) ) ; } ; }
Constructs a function that asynchronously sends the given point and then
delays sending its callback
@param {messages.Point} location The point to send
@return {function(function)} The function that sends the point
Constructs a function that asynchronously sends the given point and then delays sending its callback
This function is the function that will send the point to the specified location