mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 12:17:08 +00:00
This is a variation on /navdata but returns data more suitable for plotting vessel tracks on the map.
11 lines
213 B
JavaScript
11 lines
213 B
JavaScript
const { gis } = require('../../../../lib/db');
|
|
|
|
module.exports = async function (req, res, next) {
|
|
try {
|
|
res.status(200).send(await gis.vesseltrack.get(req.query));
|
|
next();
|
|
} catch (err) {
|
|
next(err);
|
|
}
|
|
}
|