{ "info": { "author": "Niall Grant", "author_email": "ngfgrant@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "[![CircleCI](https://circleci.com/gh/ngfgrant/navigation/tree/master.svg?style=svg&circle-token=6bba4588eeb6ed5ebff6839646ce62293a1001d8)](https://circleci.com/gh/ngfgrant/navigation/tree/master) [![Sonarcloud Status](https://sonarcloud.io/api/project_badges/measure?project=ngfgrant_navigation&metric=coverage)](https://sonarcloud.io/api/project_badges/measure?project=ngfgrant_navigation&metric=coverage) [![Sonarcloud\nStatus](https://sonarcloud.io/api/project_badges/measure?project=ngfgrant_navigation&metric=ncloc)](https://sonarcloud.io/api/project_badges/measure?project=ngfgrant_navigation&metric=ncloc) [![Sonarcloud Status](https://sonarcloud.io/api/project_badges/measure?project=ngfgrant_navigation&metric=sqale_rating)](https://sonarcloud.io/api/project_badges/measure?project=ngfgrant_navigation&metric=sqale_rating)\n[![Sonarcloud\nStatus](https://sonarcloud.io/api/project_badges/measure?project=ngfgrant_navigation&metric=reliability_rating)](https://sonarcloud.io/api/project_badges/measure?project=ngfgrant_navigation&metric=reliability_rating)\n[![Sonarcloud\nStatus](https://sonarcloud.io/api/project_badges/measure?project=ngfgrant_navigation&metric=security_rating)](https://sonarcloud.io/api/project_badges/measure?project=ngfgrant_navigation&metric=security_rating)\n[![Sonarcloud\nStatus](https://sonarcloud.io/api/project_badges/measure?project=ngfgrant_navigation&metric=sqale_index)](https://sonarcloud.io/api/project_badges/measure?project=ngfgrant_navigation&metric=sqale_index)\n[![Sonarcloud\nStatus](https://sonarcloud.io/api/project_badges/measure?project=ngfgrant_navigation&metric=vulnerabilities)](https://sonarcloud.io/api/project_badges/measure?project=ngfgrant_navigation&metric=vulnerabilities)\n\n# Navigation\n\nThis module provides units of measurement and associated functions required for\nnavigating.\n\n# Applications\n\nThere are many use-cases for this module including the original reason for\ndeveloping it - Search and Rescue. It's also useful if you are developing a GPS\napplication, or anything that needs to work with Latitude, Longitude, Routes\nand Waypoints.\n\n# Units\n\nThe following navigation units are provided:\n\n- Speed\n\n- Distance\n\n- Time\n\n- CompassBearing\n\n- Coordinate (Latitude/Longitude)\n\n- Waypoint\n\n- Leg\n\n- Route\n\n# Install\n\n```shell\n$pip install pynavigation\n```\n\n# Example\n\n```python\nfrom pynavigation.units import Speed\nfrom pynavigation.units import Distance\nfrom pynavigation.units import SpeedDistanceTime\nfrom pynavigation.units import CompassBearing\nfrom pynavigation.units import Coordinate\nfrom pynavigation.units import Waypoint\n\n# Basic Units\nspeed = Speed(10)\ndistance = Distance(100)\nsdt = SpeedDistanceTime(speed=speed, distance=distance)\nbearing = CompassBearing(83)\n\n# Positioning Units\nlatitude = Coordinate(56, 12, 34, \"N\")\nlongitude = Coordinate(2, 54, 19, \"W\")\nwaypoint = Waypoint(latitude, longitude)\n\n# Routing Units\nleg = Leg(sdt, waypoint, bearing)\nlegs = [leg]\n\nroute = Route(legs)\n\n# Example methods\n\nknots = speed.in_knots\ntime = sdt.time\nlatitude_in_decimal_format = latitude.as_decimal\nlongitude_from_decimal = Coordinate.from_decimal(-2.76543)\n\nend_wpt = leg.end_waypoint\nnumber_of_legs = route.number_of_legs\nstarting_point = route.start_waypoint\n\n\nfor leg in range(number_of_legs):\n current_leg = route.current_leg(leg)\n next_leg = route.next_leg(leg)\n previous_leg = route.previous_leg(leg)\n```\n\n# Contributing\n\nSee the [Contributing Guide](CONTRIBUTING.md)\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ngfgrant/navigation", "keywords": "navigation,waypoint,position,route,latitude,longitude", "license": "Apache2", "maintainer": "", "maintainer_email": "", "name": "pynavigation", "package_url": "https://pypi.org/project/pynavigation/", "platform": "", "project_url": "https://pypi.org/project/pynavigation/", "project_urls": { "Homepage": "https://github.com/ngfgrant/navigation" }, "release_url": "https://pypi.org/project/pynavigation/0.1.0b0/", "requires_dist": null, "requires_python": ">=3", "summary": "A library that models units for navigation on Earth.", "version": "0.1.0b0" }, "last_serial": 4744945, "releases": { "0.1.0a0": [ { "comment_text": "", "digests": { "md5": "34d9b6b09b9a28491884f5c370c70ec1", "sha256": "8fb98be33136b55d7dbe9af0e7f4b71fd9cb6f7684e6e5ab631c204c92037444" }, "downloads": -1, "filename": "pynavigation-0.1.0a0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "34d9b6b09b9a28491884f5c370c70ec1", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3", "size": 6198, "upload_time": "2019-01-13T18:21:19", "url": "https://files.pythonhosted.org/packages/52/94/d198402d44428f98536ee202ff096c15abd75fbce755550de6dda7e0c001/pynavigation-0.1.0a0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "676f71fe004998035f18d73ea34d0b6d", "sha256": "43618291b5ec105eb8707363ac9e8145414df5b67799e8ae25dd0c0ca0dfb73b" }, "downloads": -1, "filename": "pynavigation-0.1.0a0.tar.gz", "has_sig": false, "md5_digest": "676f71fe004998035f18d73ea34d0b6d", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 5742, "upload_time": "2019-01-13T18:21:21", "url": "https://files.pythonhosted.org/packages/bc/9b/099e88b3fd33c79f50b3c3ee23711bae5ee7f574827e8f64dcf167ad43ec/pynavigation-0.1.0a0.tar.gz" } ], "0.1.0b0": [ { "comment_text": "", "digests": { "md5": "f3f1a3d6f4936d31cc3ae7ce2c08d992", "sha256": "202f0a925769181ccee25cd60bff488713e0587cdd1e69630867fd7c8a3e8ef0" }, "downloads": -1, "filename": "pynavigation-0.1.0b0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f3f1a3d6f4936d31cc3ae7ce2c08d992", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3", "size": 6362, "upload_time": "2019-01-27T01:32:59", "url": "https://files.pythonhosted.org/packages/c0/18/52aa84fefcd927073843a6e57afaeea5a4ecc65d7df413d7095d1383d3a8/pynavigation-0.1.0b0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e1589fcc3d19bd4cd699f25d859d6c54", "sha256": "f43fee6cdec9aad216e22c964519956a851875cb539a14a680d44d5ad8760ce9" }, "downloads": -1, "filename": "pynavigation-0.1.0b0.tar.gz", "has_sig": false, "md5_digest": "e1589fcc3d19bd4cd699f25d859d6c54", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 5901, "upload_time": "2019-01-27T01:33:01", "url": "https://files.pythonhosted.org/packages/8a/74/3835db96cfe9da8a95504640277afa352cbee74167d6eca1ed80207b74ec/pynavigation-0.1.0b0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f3f1a3d6f4936d31cc3ae7ce2c08d992", "sha256": "202f0a925769181ccee25cd60bff488713e0587cdd1e69630867fd7c8a3e8ef0" }, "downloads": -1, "filename": "pynavigation-0.1.0b0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f3f1a3d6f4936d31cc3ae7ce2c08d992", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3", "size": 6362, "upload_time": "2019-01-27T01:32:59", "url": "https://files.pythonhosted.org/packages/c0/18/52aa84fefcd927073843a6e57afaeea5a4ecc65d7df413d7095d1383d3a8/pynavigation-0.1.0b0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e1589fcc3d19bd4cd699f25d859d6c54", "sha256": "f43fee6cdec9aad216e22c964519956a851875cb539a14a680d44d5ad8760ce9" }, "downloads": -1, "filename": "pynavigation-0.1.0b0.tar.gz", "has_sig": false, "md5_digest": "e1589fcc3d19bd4cd699f25d859d6c54", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 5901, "upload_time": "2019-01-27T01:33:01", "url": "https://files.pythonhosted.org/packages/8a/74/3835db96cfe9da8a95504640277afa352cbee74167d6eca1ed80207b74ec/pynavigation-0.1.0b0.tar.gz" } ] }