.
├── 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
- 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
cd into /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_name of the outlet, this endpoint will return the latitude and longitude of the outlet.
/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
json file as a simple database.