Python library for parsing and generating NMEA 0183 protocol messages used in GPS and marine navigation systems
77
A tool that analyzes GPS track data to extract and report temporal information from navigation messages.
@generates
from datetime import datetime, date, time
def extract_timestamp(nmea_message: str) -> time:
"""
Extract time information from an NMEA message.
Args:
nmea_message: A valid NMEA sentence string
Returns:
A time object with the timestamp from the message (UTC timezone)
"""
pass
def extract_datestamp(nmea_message: str) -> date:
"""
Extract date information from an NMEA message.
Args:
nmea_message: A valid NMEA sentence string containing date information
Returns:
A date object with the datestamp from the message
"""
pass
def extract_datetime(nmea_message: str) -> datetime:
"""
Extract combined date and time information from an NMEA message.
Args:
nmea_message: A valid NMEA sentence string containing both date and time
Returns:
A datetime object combining date and time from the message (UTC timezone)
"""
pass
def extract_local_datetime(nmea_message: str) -> datetime:
"""
Extract datetime with timezone information from an NMEA message.
Args:
nmea_message: A valid NMEA sentence string with timezone data
Returns:
A datetime object with UTC time and timezone information
"""
passProvides NMEA 0183 protocol parsing support for GPS and marine navigation messages.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/pypi-pynmea2docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10