- Python Version >= 3.6 (Because of the use of formatted print which was added to Python 3.6)
- Please see requirements.txt file that includes all necessary pip module installations (Or follow step 2 of the How to run? + install )
- Install python3-pip : Execute "sudo apt-get install python3-pip" in terminal and press Y when prompted.
- Execute "python3 -m pip install -r requirements.txt" in terminal.
- Define an environment variable called API_KEY with your Google API key (export API_KEY=YOUR_GOOGLE_API_KEY for linux).
- Execute "python3 main.py".
- Send request through cURL or WGET (E.G: curl -i -X POST -F "file=@YOUR_CSV_FILE_PATH" http://127.0.0.1:5000/calculateDistances).
Note: This was tested in Ubuntu, different distros might have some differences in commands.
├── requirements.txt <- Requirements file (pip installations).
├── main.py <- Main file. This file executes the project.
- Boris Wainstein - Programming - boriswc