This release is a pre-release and may not be stable for production use.
Navigation
This module provides units of measurement and associated functions required for navigating.
Applications
There are many use-cases for this module including the original reason for developing it - Search and Rescue. It's also useful if you are developing a GPS application, or anything that needs to work with Latitude, Longitude, Routes and Waypoints.
Units
The following navigation units are provided:
-
Speed
-
Distance
-
Time
-
CompassBearing
-
Coordinate (Latitude/Longitude)
-
Waypoint
-
Leg
-
Route
Install
$pip install pynavigation
Example
from pynavigation.units import Speed
from pynavigation.units import Distance
from pynavigation.units import SpeedDistanceTime
from pynavigation.units import CompassBearing
from pynavigation.units import Coordinate
from pynavigation.units import Waypoint
# Basic Units
speed = Speed(10)
distance = Distance(100)
sdt = SpeedDistanceTime(speed=speed, distance=distance)
bearing = CompassBearing(83)
# Positioning Units
latitude = Coordinate(56, 12, 34, "N")
longitude = Coordinate(2, 54, 19, "W")
waypoint = Waypoint(latitude, longitude)
# Routing Units
leg = Leg(sdt, waypoint, bearing)
legs = [leg]
route = Route(legs)
# Example methods
knots = speed.in_knots
time = sdt.time
latitude_in_decimal_format = latitude.as_decimal
longitude_from_decimal = Coordinate.from_decimal(-2.76543)
end_wpt = leg.end_waypoint
number_of_legs = route.number_of_legs
starting_point = route.start_waypoint
for leg in range(number_of_legs):
current_leg = route.current_leg(leg)
next_leg = route.next_leg(leg)
previous_leg = route.previous_leg(leg)
Contributing
See the Contributing Guide
Metadata
Release files for pynavigation 0.1.0b0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pynavigation-0.1.0b0.tar.gz | 5.9 kB | Without provenance | Details for pynavigation-0.1.0b0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pynavigation-0.1.0b0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for pynavigation-0.1.0b0-py2.py3-none-any.whl |
Total release size: 12.3 kB
Security for pynavigation 0.1.0b0
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.