Skip to main content

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.4.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

pygpsparser-0.0.4-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file pygpsparser-0.0.4.tar.gz.

File metadata

  • Download URL: pygpsparser-0.0.4.tar.gz
  • Upload date:
  • Size: 4.0 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

Hashes for pygpsparser-0.0.4.tar.gz
Algorithm Hash digest
SHA256 e0324801423a3e10e805eb548a2228da1de6be77068a71d2e28469626ece7ff7
MD5 788b02b701c2f6c34b70cc0f23edde63
BLAKE2b-256 2aa66a06fecfcc035d63aa8250bc21955fdccbfdeb7eddc0d0ef8e6e967b9bc8

See more details on using hashes here.

File details

Details for the file pygpsparser-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: pygpsparser-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.6 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

Hashes for pygpsparser-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 405a6c19b9f7465ea026a76e1f1a486b7143ad0f3d7fce03a1263a0e2c15d80a
MD5 176befd56c21b9b4d325f562c920d968
BLAKE2b-256 8f8ea729f8ebb67dfba48b6a266cdd81d22f3a5047d69d8187a521087df7f96d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page