Commit 9142c5ae52aceaf785033487c662586e16a4116e

Authored by 潘钊
1 parent 7b073f5a

实时GPS接口地址

Showing 1 changed file with 22 additions and 4 deletions
README.md
@@ -40,11 +40,28 @@ @@ -40,11 +40,28 @@
40 ---------- 40 ----------
41 ### 实时gps接口 41 ### 实时gps接口
42 42
43 -地址: [http://192.168.168.2:8888](http://192.168.168.2:8888) 43 +所有在线GPS: [http://192.168.168.192:8080/transport_server/rtgps](http://192.168.168.192:8080/transport_server/rtgps/)
  44 +根据设备号查询:[http://192.168.168.192:8080/transport_server/rtgps/05B01901](http://192.168.168.192:8080/transport_server/rtgps/05B01901)
44 45
45 <span style="color: red">Response</span>: 46 <span style="color: red">Response</span>:
46 ```json 47 ```json
47 -[{},{}] 48 +{
  49 + "data":[
  50 + {
  51 + "companyCode":5,
  52 + "lineId":10329,
  53 + "deviceId":"05B01901",
  54 + "carparkNo":"00000000",
  55 + "stopNo":"7C890002",
  56 + "lon":121.549866,
  57 + "lat":31.238798,
  58 + "timestamp":1397104499000,
  59 + "speed":42.0,
  60 + "direction":245.9,
  61 + "state":0,
  62 + "upDown":0
  63 + }]
  64 +}
48 ``` 65 ```
49 66
50 | -字段- | -类型-|-备注-| 67 | -字段- | -类型-|-备注-|
@@ -53,12 +70,13 @@ @@ -53,12 +70,13 @@
53 | lineId | int | 线路编码 | 70 | lineId | int | 线路编码 |
54 | deviceId | String | 设备编号 | 71 | deviceId | String | 设备编号 |
55 | carparkNo | String | 停车场编码 | 72 | carparkNo | String | 停车场编码 |
56 -| stopNo | long | 站点编码 | 73 +| stopNo | String | 站点编码 |
57 | lon | float | 经度 | 74 | lon | float | 经度 |
58 | lat | float | 纬度 | 75 | lat | float | 纬度 |
59 | timestamp | long | 时间戳 | 76 | timestamp | long | 时间戳 |
60 | speed | float | 速度| 77 | speed | float | 速度|
61 -| direction | float | 方向(角度) | 78 +| direction | float | 方向(角度) |
  79 +| state | int | 营运状态( 0 营运 ,1 非营运, -1 无效) |
62 | upDown | int | 上下行(0 上行 , 1 下行 , -1 无效)| 80 | upDown | int | 上下行(0 上行 , 1 下行 , -1 无效)|
63 81
64 82