@drivetech/dmm-parser

1.0.0 • Public • Published

@drivetech/dmm-parser

npm version npm downloads Build Status Coverage Status Maintainability dependencies Status devDependencies Status

Parser for latitude and longitude in DMM format.

Example: '3321.6735,S' -> -33.361225

Installation

$ npm i @drivetech/dmm-parser

Use

Try on Tonic

const dmm = require('@drivetech/dmm-parser');

dmm.degToDec('3321.6735,S'); // -33.361225
dmm.degToDec('07030.7640,W'); // -70.51273333333333
dmm.latToDmm(-33.361225, 4); // '3321.6735,S'
dmm.lngToDmm(-70.51273333333333, 4); // '07030.7640,W'

License

MIT

Package Sidebar

Install

npm i @drivetech/dmm-parser

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

16.1 kB

Total Files

8

Last publish

Collaborators

  • jaayesta
  • lgatica