🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

nmeaparsec

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nmeaparsec

A Python package for parsing NMEA data from GPS devices

Source
pipPyPI
Version
0.1.0
Maintainers
1

NmeaParseC

A Python package for parsing NMEA data from GPS devices. This package provides tools to read and process NMEA sentences from GPS log files, with support for common NMEA message types like GPRMC and GPGGA.

Features

  • Parse NMEA sentences from files
  • Support for GPRMC and GPGGA message types
  • Convert coordinates between DDMM.MMMMM and decimal degrees
  • Calculate distances between GPS points using the Haversine formula
  • Extract timestamps, coordinates, and other GPS data
  • Type hints and dataclass support for better code organization

Installation

pip install nmeaparsec

Usage

from nmeaparsec import NMEAParser

# Create a parser instance
parser = NMEAParser()

# Parse a NMEA file
gps_data = parser.parse_file("path/to/your/nmea/file.nmea")

# Get coordinates
coordinates = parser.get_coordinates()

# Get timestamps
timestamps = parser.get_timestamps()

# Calculate distances between consecutive points
distances = parser.get_distances()

Supported NMEA Sentences

  • GPRMC (Recommended Minimum Navigation Information)
  • GPGGA (Global Positioning System Fix Data)

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts