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***
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.2.tar.gz (3.6 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for simple_distance_calculator-0.0.2.tar.gz
Algorithm Hash digest
SHA256 8eb48deea6a8559a3b1e2789042e5cecaa5d9144bf58ada388e75c15ff626102
MD5 c0faebae78beb6ea9a607dd06fffa8fe
BLAKE2b-256 bb91173760659833bd32575fd7dcfb4aaa71cf752f6adbed6f3ea83bf619485d

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