diff --git a/pgns/129284.js b/pgns/129284.js index b73b005..710f36f 100644 --- a/pgns/129284.js +++ b/pgns/129284.js @@ -63,11 +63,13 @@ module.exports = [ '.nextPoint.position' ) }, + allowNull: true, value: function (n2k) { - return { + const p = { longitude: Number(n2k.fields['Destination Longitude']), latitude: Number(n2k.fields['Destination Latitude']) } + return isNaN(p.latitude) || isNaN(p.longitude) ? null : p } }, {