Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/seanson/python-iso6709
A package for converting ISO6709 formatted strings into decimal representation.
https://github.com/seanson/python-iso6709
iso6709 python python3
Last synced: 27 days ago
JSON representation
A package for converting ISO6709 formatted strings into decimal representation.
- Host: GitHub
- URL: https://github.com/seanson/python-iso6709
- Owner: seanson
- Created: 2017-08-25T02:31:08.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T00:36:37.000Z (almost 2 years ago)
- Last Synced: 2024-10-07T19:05:34.154Z (about 1 month ago)
- Topics: iso6709, python, python3
- Language: Python
- Homepage:
- Size: 24.4 KB
- Stars: 4
- Watchers: 2
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.rst
Awesome Lists containing this project
README
ISO 6709
========This is a package for converting ISO6709 formatted strings into decimal representation.
Formats
=======This library supports the following DMS formats:
- ``±DD.DDDD±DDD.DDDD/`` - Latitude and Longitude in Degrees
- ``±DDMM.MMMM±DDDMM.MMMM/`` - Latitude and Longitude in Degrees and Minutes
- ``±DDMMSS.SSSS±DDDMMSS.SSSS/`` - Latitude and Longitude in Degrees, Minutes and SecondsAs well as the standard altitude/height suffix: ``±AAAA``
Usage
=====>>> from iso6709 import Location
>>> loc = Location('+27.5916+086.5640+8850/') # Mount Everest
>>> print (loc.lat.degrees, loc.lng.degrees, loc.alt
27.5916 86.5640 8850