GPS Sentence Parser
Project description
py-gps-parser
GPS parser module
Steps
- Step 1: install pygpsparser 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.2.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for pygpsparser-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6cad050bfc2b3c31b1b231c21b872bbd85967302f3b23277c45f42a9943aac97 |
|
MD5 | 5863ac9c96bea483441d74c23a3564fe |
|
BLAKE2b-256 | 4909c0221536946e4d36232f44254d19083b9e4844aaa36a0fcd146391f4fa74 |