Flight-Plan converter
Converts Flight Plans from and to various file formats.
Supported formats:
- X-Planes
.fms
V3 - X-Planes
.fms
V1100 - ForeFlight
.fpl
(import only) - KML (export only)
Usage
On the command line:
$ npm install$ npm run convert [source] [dest]
or bypassing npm to use directly:
$ npm install$ flight-plan-converter [source] [dest]
or programatically:
var converter = ; var msFpl = fs; fs; // or create a normalized flight plan var fpl = waypoints: lat: 50 lon: 11 elevation: 100 // elevation in ft type: convertertypesGPS // -> 'gps' lat: 5224196492666667 lon: 1185835872 elevation: 172 type: convertertypesAIRPORT // -> 'airport' airport: icao: "EDBG" lat: 52074078 lon: 11648333 elevation: 0 type: convertertypesNDB // -> 'ndb' ndb: identifier: "MU" lat: 52546944 lon: 11099722 elevation: 0 type: convertertypesFIX // -> 'fix' fix: name: "BATEL" ; fs;