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.
Metadata
Release files for geosphere 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| geosphere-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Release files / geosphere-0.0.1-py3-none-any.whl
| Download URL | geosphere-0.0.1-py3-none-any.whl |
|---|---|
| Size | 10.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c8e4bf41e24f3acbaf0359894d38f02608e9a547fafebe963f4ad59129a6fb9f
|
|
BLAKE2b-256 checksum How to use checksums |
190788bd9258c606291250a95fcaa193083518c679875e3fdbcb5056e6e25ebd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for geosphere 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.