Route generator software for CHIditarod
Warning, this code is uggggly. Somehow, every year, I'm able to get it to run. YMMV.
Basically it is a traveling salesman solver. There is a starting line, a finish line, and a configurable amount of checkpoints in-between. You first add the various checkpoints, add the distances between them all, set a few params like # of teams, the # of checkpoints, etc, then hit go, and it figures out the best routes.
The codebase is written in Python, and it uses an old version of the Django web framework.
Read INSTALL.md
-
Activate the python virtual environment
cd path/to/routemaster/repo . ~/.python/Virtualenvs/routemaster/bin/activate
-
Run Locally
python manage.py runserver
-
Visit URLs
- http://localhost:8000/admin - Configure the races, checkpoints, etc
- http://localhost:8000/races - Run the calculations
Rewrite this in something fun.
$ bin/pip-install
cd path/to/routemaster
python manage.py shell
from django.conf import settings
print settings.<tab>
devin / mush