Skip to content

geocalc is a closest haversine distance calculation app. Given an address, the app calculates the nearest distance to MKAD.

Notifications You must be signed in to change notification settings

ttoygar/geocalc

Repository files navigation

geocalc

geocalc is an app based on Flask framework designed to calculate the closest haversine distance to "MKAD" from any address given as http query.

Installation

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

Usage

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

About

geocalc is a closest haversine distance calculation app. Given an address, the app calculates the nearest distance to MKAD.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published