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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pygpsparser-0.0.5.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.5.tar.gz
Algorithm Hash digest
SHA256 e6b9b74f935633a63765d4ae078c9ba8b2306dc10056fd3e09bb37e60527a684
MD5 d623c2e53b6d7ada67aad44ef561fdfd
BLAKE2b-256 029311b08e08087e511aa9e8b167ec2131f202b25e455626b29bdb6468e74a39

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pygpsparser-0.0.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 06956babb647fa3bbac814a7e6ddca874544eeb81c244e72c761c9e8662a71b2
MD5 64a93d3c0c68aba8413d1d1d743552b0
BLAKE2b-256 7dda9efe095275e8310aa2e4eb82ddb7d39a739903bd272315e514b4fa4168f7

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