@tak-ps/node-cot
Version:
Lightweight JavaScript library for parsing and manipulating TAK messages
23 lines • 618 B
JavaScript
import Util from '../utils/util.js';
import CoT from '../cot.js';
export class Route extends CoT {
constructor(cot) {
if (cot) {
if (cot.type() !== 'b-m-r') {
throw new Error('Invalid CoT type for Route');
}
super(cot.raw);
}
else {
const cot = {
event: {
_attributes: Util.cot_event_attr('b-m-r', 'h-e'),
point: Util.cot_point(),
detail: {}
}
};
super(cot);
}
}
}
//# sourceMappingURL=route.js.map