dmm-parser

0.0.3 • Public • Published

dmm-parser

npm version npm downloads Build Status Coverage Status Code Climate dependency Status devDependency Status

Parser for latitude and longitude in DMM format.

Example: '3321.6735,S' -> -33.361225

Installation

$ npm i dmm-parser

Use

Try on Tonic

const dmm = require('dmm-parser');
 
dmm.degToDec('3321.6735,S'); // -33.361225
dmm.degToDec('07030.7640,W'); // -70.51273333333333
dmm.degToDec(-33.361225, 4); // '3321.6735,S'
dmm.degToDec(-70.51273333333333, 4); // '07030.7640,W'

License

MIT

Dependents (0)

Package Sidebar

Install

npm i dmm-parser

Weekly Downloads

6

Version

0.0.3

License

MIT

Last publish

Collaborators

  • lgatica