geocalc is an app based on Flask framework designed to calculate the closest haversine distance to "MKAD" from any address given as http query.
clone this repository and set into environment variables
$ FLASK_APP=fgeocoder
register the blueprint
from .geocalc.geocalc import geocalc
app.register_blueprint(geocalc)
run from main directory
...\geocalc>flask run
Reads the address from query and saves the distance to geoc.log and geoc.csv on root directory. Also prints the result on html page.
# returns 1776.8430545711326 km
http://localhost:5000/?address=Ankara
# returns 2485.7898310323476 km
http://localhost:5000/?address=London