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.7.tar.gz (5.6 kB view hashes)

Uploaded Source

Built Distribution

pygpsparser-0.0.7-py3-none-any.whl (6.5 kB view hashes)

Uploaded Python 3

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