Classes
Methods
getPosition() → {Object|null}
Get the current position
- Source
Current position with latitude, longitude, altitude, quality, etc.
- Type:
- Object |
null
getSatellites() → {Array.<Object>|null}
Get current satellite information
- Source
Satellite information
- Type:
- Array.<Object> |
null
getSentenceStats() → {Object}
Get sentence statistics
- Source
Sentence type counts and rates
- Type:
- Object
parse(data) → {Object}
Alias for parseData for backward compatibility
Name | Type | Description |
---|---|---|
data | string | | Raw data from receiver |
- Source
Parsed NMEA data
- Type:
- Object
parseData(data) → {Object}
Parse data received from the device
Name | Type | Description |
---|---|---|
data | string | | Raw data from receiver |
- Source
Parsed NMEA data
- Type:
- Object
parseGGA(parts) → {Object}
Parse GGA sentence (Global Positioning System Fix Data)
Name | Type | Description |
---|---|---|
parts | Array.<string> | Sentence parts |
- Source
Parsed GGA data
- Type:
- Object
parseGSA(parts) → {Object}
Parse GSA sentence (GPS DOP and active satellites)
Name | Type | Description |
---|---|---|
parts | Array.<string> | Sentence parts |
- Source
Parsed GSA data
- Type:
- Object
parseGST(parts) → {Object}
Parse GST sentence (GPS Pseudorange Noise Statistics)
Name | Type | Description |
---|---|---|
parts | Array.<string> | Sentence parts |
- Source
Parsed GST data
- Type:
- Object
parseGSV(parts) → {Object}
Parse GSV sentence (GPS Satellites in view)
Name | Type | Description |
---|---|---|
parts | Array.<string> | Sentence parts |
- Source
Parsed GSV data
- Type:
- Object
parseLatitude(value, direction) → {number|null}
Parse latitude from NMEA format
Name | Type | Description |
---|---|---|
value | string | Latitude value |
direction | string | N/S |
- Source
Decimal latitude
- Type:
- number |
null
parseLongitude(value, direction) → {number|null}
Parse longitude from NMEA format
Name | Type | Description |
---|---|---|
value | string | Longitude value |
direction | string | E/W |
- Source
Decimal longitude
- Type:
- number |
null
parseRMC(parts) → {Object}
Parse RMC sentence (Recommended Minimum Navigation Information)
Name | Type | Description |
---|---|---|
parts | Array.<string> | Sentence parts |
- Source
Parsed RMC data
- Type:
- Object
parseSentence(sentence) → {Object|null}
Parse a single NMEA sentence
Name | Type | Description |
---|---|---|
sentence | string | NMEA sentence |
- Source
Parsed data or null if invalid
- Type:
- Object |
null
parseVTG(parts) → {Object}
Parse VTG sentence (Course Over Ground and Ground Speed)
Name | Type | Description |
---|---|---|
parts | Array.<string> | Sentence parts |
- Source
Parsed VTG data
- Type:
- Object
processBuffer() → {Array.<Object>}
Process the current buffer for complete NMEA sentences
- Source
Array of parsed NMEA objects
- Type:
- Array.<Object>
reset()
Clear parsed data
- Source
validateChecksum(sentence) → {boolean}
Validate NMEA checksum
Name | Type | Description |
---|---|---|
sentence | string | NMEA sentence |
- Source
Whether checksum is valid
- Type:
- boolean