flight-plan-converter
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -45,2 +45,3 @@ 'use strict'; | ||
' <Point>', | ||
' <altitudeMode>absolute</altitudeMode>', | ||
' <coordinates>' + coordinatesFromWaypoint(waypoint) + '</coordinates>', | ||
@@ -53,3 +54,3 @@ ' </Point>', | ||
function coordinatesFromWaypoint(waypoint) { | ||
return [waypoint.lat, waypoint.lon, ftToMt(waypoint.elevation)].join(','); | ||
return [waypoint.lon, waypoint.lat, ftToMt(waypoint.elevation)].join(','); | ||
} | ||
@@ -95,2 +96,3 @@ | ||
' <LineString>', | ||
' <altitudeMode>absolute</altitudeMode>', | ||
' <coordinates>', | ||
@@ -97,0 +99,0 @@ ' ' + flightPlan |
@@ -22,3 +22,2 @@ 'use strict'; | ||
it('should convert simple.json', () => { | ||
console.log(converter(getFlightPlan('simple.json'))); | ||
expect(converter(getFlightPlan('simple.json'))) | ||
@@ -25,0 +24,0 @@ .to |
{ | ||
"name": "flight-plan-converter", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Converts Flight Plans from and to various file formats.", | ||
@@ -5,0 +5,0 @@ "bin": "cli.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23079
677