This app calculates the distance (in kilometers) from any given address to the Moscow Automobile Ring Road (MKAD). If the address is located inside of the MKAD area, then an error message is displayed.
To Calculate the distance you will need a Yandex API Key (you can get it at https://yandex.ru/dev/maps/geocoder/doc/desc/concepts/about.html for free).
To execute the Flask blueprint:
- Create a new directory and clone this repo
mkdir mkad_app
cd mkad_app
git clone https://github.com/J-angelm/mkad_distance
- Move into your repo and build your docker container
cd mkad_distance
docker build -t mkad_app:latest .
- Run the container
docker run -d -p 8000:8000 mkad_app
- Access the website through your IPv4 address or your localhost