公交调度系统BS版 0.1
目录
字典表对照
字典操作全部由前端负责,主要有2种。
1、将字典代码转换为中文 。片段加载完成后,包含 class="nt-dictionary" 的标签会被转换,data-group 为所属字典组。
<!-- 原 -->
<span class="nt-dictionary" data-group="XianLuXingZhi">GJXL</span>
<!-- 转换后 -->
<span class="dictionary" data-group="XianLuXingZhi" data-code="GJXL" >过江线路</span>
2、生成下拉框,当包含class="nt-dictionary" 的标签是select时。
<!-- 原 -->
<select class="nt-dictionary" data-group="XianLuXingZhi" data-code="GJXL"></select>
<!-- 转换后 -->
<select class="nt-dictionary" data-group="XianLuXingZhi" >
<option value="GJXL">过江线路</option>
<option value="CCTXL">村村通线路</option>
<option value="YXXL">夜宵线路</option>
<option value="CSBS">穿梭巴士</option>
</select>
gps
实时gps数据接口http
Response:
[{},{}]
| -字段- | -类型-|-备注-| | -- | --|--| | companyCode | int | 公司代码 | | lineId | int | 线路编码 | | deviceId | String | 设备编号 | | carparkNo | String | 停车场编码 | | stopNo | String | 站点编码 | | lon | float | 经度 | | lat | float | 纬度 | | timestamp | long | 时间戳 | | speed | float | 速度| | direction | float | 方向(角度) | | upDown | int | 上下行(0 上行 , 1 下行 , -1 无效)|