0.0.3 • Published 7 years ago

dmm-parser v0.0.3

Weekly downloads
7
License
MIT
Repository
github
Last release
7 years ago

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

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

8 years ago