Skip to main content

A distance calculator

Project description

Distance calculator that has these functions

-convert address to lat and lon
-covert lat and lon to address
-Haversine formula - distance in km
-Spherical Law of Cosines - distance in km
-Equirectangular Approximation

to calculate distances you need to use lat and lon

***HOW TO USE***
pip install simple-distance-calculator
from simple_distance_calculator.distance import haversine_distance, get_coordinates, spherical_law_of_cosines_distance, get_address, equirectangular_approximation

examples for caculating distances
haversine_distance(54.9037, 23.9578, 54.9057, 23.9562)

spherical_law_of_cosines_distance(54.9037, 23.9578, 54.9057, 23.9562)

equirectangular_approximation(54.9037, 23.9578, 54.9057, 23.9562)

examples of convertation

get_address(54.686758350000005, 25.29068448063221)

get_coordinates("Gedimino pilis")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simple_distance_calculator-0.0.3.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file simple_distance_calculator-0.0.3.tar.gz.

File metadata

File hashes

Hashes for simple_distance_calculator-0.0.3.tar.gz
Algorithm Hash digest
SHA256 e6da7f943ec933ddd975e4f50c44ec778048667691be5a46ff8e83b8ba317df9
MD5 8d7351da43934b742988b7db3632636a
BLAKE2b-256 b1ee81aa2a89e114acc9f5b4c584938e557b6636d322333c498956bbebc4f5d3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page