GPS Sentence Parser
Project description
GPS parser module
Steps
- Step 1: install pygpsparser module
pip install pygpsparser
- Step 2: import GPSParser
from pygpsparser import GPSParser
- Step 3: prepare GPS sentences, e.g.,
sentence_RMC = '$GNRMC,062357.00,A,2502.3376,N,12133.52528,E,0.132,,231221,,,A*68'
- Step 4: create GPSParser instance
gps_parser = GPSParser(local_time_zone = 'Asia/Taipei')
local_time_zone
: set the local time zone for datetime conversion
- Step 5: 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_RMC}')
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.7.tar.gz
(5.6 kB
view details)
Built Distribution
File details
Details for the file pygpsparser-0.0.7.tar.gz
.
File metadata
- Download URL: pygpsparser-0.0.7.tar.gz
- Upload date:
- Size: 5.6 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 | 17738dcc74227d44eccfc93f9aa9108ccae8bad48bb1b0c1a5878513d9f73016 |
|
MD5 | 1612beca7baf36f7ecae42bc666902c8 |
|
BLAKE2b-256 | 52bec758e44dfc0d4f0bcbfa09a8b7f5272b1a4ee17e12dbae10ba494da28d1f |
File details
Details for the file pygpsparser-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: pygpsparser-0.0.7-py3-none-any.whl
- Upload date:
- Size: 6.5 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 | a2d32070e037b6ca3a0e11a389713480a089dc6d4f3b9070d1f0a6d526f8d6e8 |
|
MD5 | 4cc32233ad2a3cd3294f6462f594bfe7 |
|
BLAKE2b-256 | d1d53099451c55888236c2832a12a786434d700b00248e578499e0d045e4cdf5 |