if ( process.argv[2] != null ) {
    var redis = require("redis"),
	client = redis.createClient();

    var id = process.argv[2];
    var lat = 42.3599120000 + (Math.random() / 100);
    var lng = -71.0875660000 + (Math.random() / 100);
    var data;

    console.log('Sending random data for id ' + id);

    setInterval( function() {
	    lat += (Math.random() / 1000);
	    lng += (Math.random() / 1000);

	    data = { latitude: lat, longitude: lng, altitude: 10 };
	    client.publish(id, JSON.stringify( data ) );
	    console.log( JSON.stringify( data ) );
	}, 1000);

}
else {
    console.log('usage: ' + process.argv[0] + ' ' + process.argv[1] + ' id');
    process.exit(1);

}

@@ -222,32 +222,119 @@
 andom() / 100);%0A
+    var latO = (Math.random() - .5) / 1000;%0A    var lngO = (Math.random() -.5) / 1000;%0A
     var data;%0A%0A 
@@ -331,16 +331,16 @@
 r data;%0A
-
 %0A    con
@@ -450,16 +450,23 @@
  / 1000)
+ + latO
 ;%0A%09    l
@@ -493,16 +493,23 @@
  / 1000)
+ + lngO
 ;%0A%0A%09    

add a random static offset so tracks diverge significantly