Skip to content

PatrickBrayPersonal/rendezvous

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rendezvous

DVA Project Users: use our public application at https://rendezvous.streamlit.app/

For Developers

Installation

  • 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
  • Install Requirements
    • pip install -r requirements.txt
  • Install local rendez package
    • pip install -e .

App Execution

streamlit run rendez/streamlit.py

Environment Variables

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

Optimizer

Passing data into the optimizer

Graph

  • 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

Usage

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.

About

DVA Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages