DVA Project Users: use our public application at https://rendezvous.streamlit.app/
- Download python 3.7 (I chose this cus we used it for HW1)
- From the project directory, create environment
virtualenv --python=3.7 env
- Activate environment
- Windows:
env\Scripts\activate
- Windows:
- Install Requirements
pip install -r requirements.txt
- Install local rendez package
pip install -e .
streamlit run rendez/streamlit.py
add a file called "secrets.toml" to the .streamlit
directory under rendezvous
add a single line to the file
API_KEY =
This will be the places api key used by the program
Streamlit Secrets
Passing data into the optimizer
-
nodes - businesses + single node for user's current location
-
edges - eligible travel links from one business to the next
- weight - distance, haversine (or time if you're ambitious)
Further detail can be found here
See the example code in scripts/test_optimizer.py
for using the optimizer.
Create dataframes that resember the csv files present in test_data/test_edges.csv
and test_data/test_nodes.csv
.
Pass those dataframes and your desired parameters into the optimizer.