.
├── app
│ ├── data
│ │ ├── zus_data.json
│ │ └── zus_geolocation.json
│ ├── coordinate.py
│ ├── main_api.py
│ ├── main_ui.py
│ ├── scraper.ipynb
│ └── utils.py
├── .gitignore
├── LICENCE
├── README.md
└── requirements.txt
- Fork and clone this repository.
- Within the repo, create virtual environment with the following command
python3.9 -m venv venv
- Activate the environment with
venv/Scripts/Activate.ps1 # powershell
venv/Scripts/Activate # gitbash
source venv/bin/activate # zsh
- Install packages and libraries with
pip install -r requirements.txt
cdinto/app- Execute the following command
uvicorn main_api:app --reload- See the API docs from http://127.0.0.1:8000/docs
- Request from the endpoint to see the response body.
/location- Given parameter
branch_nameof the outlet, this endpoint will return the latitude and longitude of the outlet.
- Given parameter
/distance- Given two points of outlet, this endpoint will return the distance between the outlets and check whehter it is within 5 km of radius by returning Boolean.
- Assumed
jsonfile as a simple database.