This repository aims to make the lives of the Dutch Clothing Loop managers easier by suggesting a logical route past all participating addresses of a clothing loop. The ordering in addresses should be made in such a way that none of the participants has to walk very far, preferably < 10 minutes.
This project is built using the programming language Python, specifically version 3. It contains a few dependencies outside of the
standard library of Python. The most easy way to install these dependencies is by using pip
inside a Python virtual environment
or venv.
Please refer to the documentation of pip
on how to install pip
on your operating system of choice.
git clone https://github.com/jd7h/clothing-swap-route
)python3 -m venv venv
py -m venv venv
venv
that contains your freshly created virtual environmentbash
): source venv/bin/activate
venv\Scripts\activate
pip install -r requirements.txt
After installation, run the following command to get a demonstration of the capabilities of the program:
source venv/bin/activate
cd clothing_loop
python -m main -d -g -r -i ../example_data/tiny_example.csv -o ../example_data/tiny_result.csv
This tells the program to
../example_data/tiny_example.csv
as input, and../example_data/tiny_result.csv
as outputContributions are welcome. :)
Be sure to install the pre-commit hook so that all our files are formatted in the same way:
pip install -r requirements
pre-commit install
Now the the files will be formatted at every git commit
.
This code in this repository has a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International license. This license requires that reusers give credit to the creator(s). It allows reusers to distribute, remix, adapt, and build upon the material in any medium or format, for noncommercial purposes only. If others modify or adapt the material, they must license the modified material under identical terms.
The main program from this repository may use the public OSRM service by FOSSGIS. They offer routing services under certain conditions, to name a few (technical) ones:
The main program in this repository respects these conditions. Consequently, the execution of the program may take a while. Please do not change the limitations in place to keep the provider of this service happy.
Furthermore, the data provided is © OpenStreetMap and their contributors under ODbL and CC-BY-SA. Please contribute to OpenStreetMap by fixing the map.