船舶自动识别系统 (Automatic Identification System) 使用 js 构建 web 端。
- Vue
- 高德地图
- node-serialport
- ais-json
- 单条解析
- 串口解析
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
bash
文件夹
文件名 | 描述 |
---|---|
AIS.JS.sh | 启动网站后台服务器并自动打开浏览器至指定页面 |
SerialPort | 打开串口接收 AIS 报文信息 |
natapp.exe | 内网映射至公网工具 |
config.ini | natapp token 配置文件 |
文件所在路径:/src/ais
import ais from '../ais'
aisInfo = ais(aisText)
aisInfo
为解析获得信息,以 json
对象形式返回;
aisText
为需要解析的 AIS 文本。
npm 的 ais.js 名称已被占用,之后可能会改名并将解析包分离打包上传至 npm。