GPS Sentence Parser
Project description
py-gps-parser
GPS parser module
Steps
- Step 1: import py-parser module
from gpsparser import GPSParser
- Step 2: prepare GPS sentences, e.g.,
sentence_RMC = '$GNRMC,062357.00,A,2502.3376,N,12133.52528,E,0.132,,231221,,,A*68'
- Step 3: create GPSParser instance
gps_parser = GPSParser(local_time_zone = 'Asia/Taipei')
local_time_zone
: set the local time zone for datetime conversion
- Step 4: get the RMC message
if gps_parser.parse_NMEA(sentence_RMC) is True:
print(f'local datetime: {gps_parser.local_datetime}')
print(f'latlon in radian: {gps_parser.latlon_radian}')
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pygpsparser-0.0.1.tar.gz
(3.9 kB
view details)
Built Distribution
File details
Details for the file pygpsparser-0.0.1.tar.gz
.
File metadata
- Download URL: pygpsparser-0.0.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 837036e027494c2c6710c4c4f2bbcc58ac1d3db7f2e060acbe26fa29e31f3a8a |
|
MD5 | 14a1292d68b03db82ce4f88cc2ad840b |
|
BLAKE2b-256 | 772a9ca9b6dd1ceac6d35357e2841d5fa0ffffbcefb9289d25732015d288cab7 |
File details
Details for the file pygpsparser-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: pygpsparser-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 540a2f9f48aeed9e9eaf6565ce8d104cd1a3e8c8d391760976d7b72715d9e8fa |
|
MD5 | 38d73bd13bcbfd07c75e29caafa0934b |
|
BLAKE2b-256 | b16c0f3f9da62c49fa87299c8f1b0413e6892391ada5fb87198ff1d4b5d1dfcf |