Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

iso6709-to-dms

cycloptivity7Apache-2.01.0.0

A non standards compliant module to convert ISO6709 points to decimal degrees

iso6709, decimal degrees, position, points

readme

iso6709-to-dms

NPM downloads NPM version Node version

Convert ISO 6709 positions into decimal degree positions.

Don't use this for mission critical stuff, it does not implement the full standard. Useful enough for VATSIM.

Install

Node.JS

npm install iso6709-to-dms --save
var iso2dec = require('iso2dec');

Usage

var point = iso2dec('+123456.7-0985432.1+15.9')

Return

{
latitude: latitude,
longitude: longitude,
altitude: altitude
};

Note: altitude is not returned when not present in the source point.