UNPKG

@jbroll/nmea-simple

Version:

NMEA 0183 sentence parser and encoder

13 lines (12 loc) 520 B
import { PacketStub } from "./PacketStub"; export declare const sentenceId: "GLL"; export declare const sentenceName = "Geographic position - latitude and longitude"; export interface GLLPacket extends PacketStub<typeof sentenceId> { latitude: number; longitude: number; time: Date; status: "valid" | "invalid"; faaMode?: string; } export declare function decodeSentence(stub: PacketStub, fields: string[]): GLLPacket; export declare function encodePacket(packet: GLLPacket, talker: string): string;