Demo of Nap logic to reduce jet lag
This demo is run as a command-line utility. It relies on Node.js. The flight info and other parameters are supplied by a json file.
node naptime.js trip0.json
Included are the naptime.js, plus 4 trip examples.
Baseline trip, with a single leg, requiring no adjustments to the preferred nap time.
Trip, with a single leg
Trip, with 2 legs, and a long layover, requiring nap adjustment
Trip, with 2 legs, and a short layover, requiring nap adjustment
Included is the output of the console for each trip. This is located in the results folder, and named the same as the trip with a text extension.