Skip to main content

Distance Calculator

Local time difference calculations.

  1. The meridian difference between the two determined points is revealed.

    • If the meridians are located in the same hemisphere, they should be subtracted, if they are located in different hemispheres, they should be added.
  2. The resulting meridian difference is multiplied by 4 minutes.

    • Additional information:

      • Because the Earth rotates from west to east, local time is always ahead in the east and behind in the west.

      • Local times of regions on the same meridian are always the same.

# local_time_calculation(longitude1: int, longitude2: int)

print(local_time_calculation(3, 7))

# 16

Anti-meridian Calculation

To find the anti-meridian of a meridian, it is necessary to subtract it from 180.

# find_anti_meridian(longitude: int)

print(find_anti_meridian(34))

# 146

Calculating the distance between meridians

To understand how many kilometers are between two meridians at our current point;

First, we must calculate the length of the parallel at that point, using the angle of the parallel at that point.

Then we have to divide by 360 since there are 360 meridians in the world.

# distance_between_meridians(latitude: int)

distance_between_meridians(10)

Calculating the distance between two points on Earth

Calculate the distance between two points on Earth with Haversine formula.

# distance_calculation(latitude: float, longitude: float, target_latitude: float, target_longitude: float, miles=False)

distance_calculation(13, 24, 42, 12)

Metadata

Release files for dist-calculating 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dist-calculating 0.0.1
File Size Uploaded
dist_calculating-0.0.1.tar.gz 4.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dist-calculating 0.0.1
File Interpreter ABI Platform
dist_calculating-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.9 kB

Release files / dist_calculating-0.0.1.tar.gz

Download URL dist_calculating-0.0.1.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
487e8bde6a4d9c231478b37293f3fb54b7997b7b3438840e99fa43bf1c167dc2
BLAKE2b-256 checksum
How to use checksums
bf9aa6e9a8f34d67c7cd85a87fd253b5d2f454a67919f286a76cc94607b5fb94
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release files / dist_calculating-0.0.1-py3-none-any.whl

Download URL dist_calculating-0.0.1-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
829848c32767c1c8f0fb1cc2202248182a1e83ea21ca748fae66ce7b52b9ed7e
BLAKE2b-256 checksum
How to use checksums
a0ca99f50309a0177dcf988934915fbaaed8db303d20daa78a72c8cd7a6d92a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page