Commit ce9b8cb7659141f960c371fd5682ef9c6e55a684
1 parent
526e065b
试一下markdown
Showing
1 changed file
with
64 additions
and
2 deletions
README.md
| 1 | -公交调度系统BS版 | |
| 2 | -======= | |
| 1 | +公交调度系统BS版 0.1 | |
| 2 | +====== | |
| 3 | +---------- | |
| 4 | +## 目录 | |
| 5 | +--------- | |
| 6 | +* [字典表](#怎样使用字典) | |
| 7 | +* [车载 gps 相关数据](#gps) | |
| 8 | + * [实时数据接口 -http](#实时gps数据接口http) | |
| 9 | + * [进出站数据 -redis](#进出站数据接口) | |
| 10 | + | |
| 11 | +---------- | |
| 12 | + | |
| 13 | +## 字典表对照 | |
| 14 | +---------- | |
| 15 | +字典操作全部由前端负责,主要有2种。 | |
| 16 | + | |
| 17 | +1、将字典代码转换为中文 。片段加载完成后,包含 `class="nt-dictionary"` 的标签会被转换,data-group 为所属字典组。 | |
| 18 | +``` javascript | |
| 19 | +<!-- 原 --> | |
| 20 | +<span class="nt-dictionary" data-group="XianLuXingZhi">GJXL</span> | |
| 21 | + | |
| 22 | +<!-- 转换后 --> | |
| 23 | +<span class="dictionary" data-group="XianLuXingZhi" data-code="GJXL" >过江线路</span> | |
| 24 | +``` | |
| 25 | +2、生成下拉框,当包含`class="nt-dictionary"` 的标签是`select`时。 | |
| 26 | +``` javascript | |
| 27 | +<!-- 原 --> | |
| 28 | +<select class="nt-dictionary" data-group="XianLuXingZhi" data-code="GJXL"></select> | |
| 29 | + | |
| 30 | +<!-- 转换后 --> | |
| 31 | +<select class="nt-dictionary" data-group="XianLuXingZhi" > | |
| 32 | + <option value="GJXL">过江线路</option> | |
| 33 | + <option value="CCTXL">村村通线路</option> | |
| 34 | + <option value="YXXL">夜宵线路</option> | |
| 35 | + <option value="CSBS">穿梭巴士</option> | |
| 36 | +</select> | |
| 37 | +``` | |
| 38 | + | |
| 39 | +## gps | |
| 40 | +---------- | |
| 41 | +### 实时gps数据接口http | |
| 42 | + | |
| 43 | +地址: [http://192.168.168.2:8888](http://192.168.168.2:8888) | |
| 44 | + | |
| 45 | +<span style="color: red">Response</span>: | |
| 46 | +```json | |
| 47 | +[{},{}] | |
| 48 | +``` | |
| 49 | + | |
| 50 | +| -字段- | -类型-|-备注-| | |
| 51 | +| -- | --|--| | |
| 52 | +| companyCode | int | 公司代码 | | |
| 53 | +| lineId | int | 线路编码 | | |
| 54 | +| deviceId | String | 设备编号 | | |
| 55 | +| carparkNo | String | 停车场编码 | | |
| 56 | +| stopNo | String | 站点编码 | | |
| 57 | +| lon | float | 经度 | | |
| 58 | +| lat | float | 纬度 | | |
| 59 | +| timestamp | long | 时间戳 | | |
| 60 | +| speed | float | 速度| | |
| 61 | +| direction | float | 方向(角度) | | |
| 62 | +| upDown | int | 上下行(0 上行 , 1 下行 , -1 无效)| | |
| 63 | + | |
| 64 | + | |
| 3 | 65 | |
| 4 | 66 | |
| 5 | 67 | ... | ... |