Skip to main content

Spherical geometry utilities for navigation

Project description

This small pure python package provides two functions which do computations in spherical trigonometry that are needed for navigating on the surface of the earth.

The function

destination(lat_deg, long_deg, distance_nm, bearing_deg)

returns the latitude and longitude of the location reached by traveling distance_nm nautical miles along the great circle route starting at the location with latitude lat_deg and longitude long_deg and having the specified initial bearing.

The function

distance_bearing(lat1_deg, long1_deg, lat2_deg, long2_deg)

returns the distance in nautical miles and the bearing in degrees from the location given by the first latitude-longitude pair to the location given by the second latitude-longitude pair. If the points are too close together the bearing is 0. If the first point is at a pole, the bearing is 0 or 180, as appropriate. If the points are antipodes, so the bearing is undefined, then the bearing returned is 0.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

geosphere-0.0.1-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file geosphere-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: geosphere-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.0

File hashes

Hashes for geosphere-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c8e4bf41e24f3acbaf0359894d38f02608e9a547fafebe963f4ad59129a6fb9f
MD5 dea2d4a04ade5361f87c60b59852dcef
BLAKE2b-256 190788bd9258c606291250a95fcaa193083518c679875e3fdbcb5056e6e25ebd

See more details on using hashes here.

Supported by

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