https://github.com/zemuldo/gps_parser
:satellite: Library for decoding gps data, Supports Nmea data format. Is a package available at https://www.npmjs.com/package/gps_parser
https://github.com/zemuldo/gps_parser
gps gpsparser nmea
Last synced: about 1 month ago
JSON representation
:satellite: Library for decoding gps data, Supports Nmea data format. Is a package available at https://www.npmjs.com/package/gps_parser
- Host: GitHub
- URL: https://github.com/zemuldo/gps_parser
- Owner: zemuldo
- License: apache-2.0
- Created: 2018-04-06T09:37:43.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-09T11:04:47.000Z (about 8 years ago)
- Last Synced: 2025-02-28T05:46:10.398Z (over 1 year ago)
- Topics: gps, gpsparser, nmea
- Language: JavaScript
- Homepage:
- Size: 74.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# gps_parser
 [](https://travis-ci.org/zemuldo/gps_parser)
Library for decoding gps data, Supports Nmea data format. Has google reverse geolocation support
# Usage:
```javascript
npm install --save gps_parser
```
```javascript
const parser = require('gps_parser')
let data = '*HQ,6028021806,V1,125601,A,0112.9492,S,03654.2240,E,000.04,000,170218,FFF7BBFF,639,02,04009,12902,7,31#';
let gpsPack = new parser(data);
gpsPack.isVoid, false;
gpsPack.latitude, 1.21582;
gpsPack.longitude, -36.903733333333335;
gpsPack.speedkmh, 181.57008000000002;
gpsPack.speedknots, 98.04;
gpsPack.date, '2018-04-17T12:56:01.000Z'
gpsPack.getRangeFromKnow(-1.21343, 36.92356), 2.2200929037438093
gpsPack.reverseGeoLocGoogle(process.env.GOOGLE_MAPS_API_KEY))
.then(o => Array of objects with all addresses ) ;
.catch(e => Error Object ) ;
```
# Contributions welcome, Have Fun