@huyl08
2018-04-11T01:12:20.000000Z
字数 12327
阅读 1304
北京
浮动车
服务
SpringMVC
北京局域网大屏:
请求地址 | http://10.212.129.171:8083/geoserver/fcd/wms |
---|---|
图层名 | fcd:lyr_utm_link01m_lv1 fcd:lyr_utm_link01m_lv2 fcd:lyr_utm_link01m_lv5 |
投影 | EPSG:32650 |
统一
请求地址 | ${GEOSERVER_BASE}/fcd/wms |
---|---|
图层名 | fcd:lyr_wgs_link01m_lv1 fcd:lyr_wgs_link01m_lv2 fcd:lyr_wgs_link01m_lv5 |
投影 | EPSG:4326 |
北京局域网大屏:
请求地址 | http://10.212.129.176:8080/screen/fastsheet.do?target=getData |
---|---|
请求参数 | 无 |
统一
请求地址 | ${URI_BASE}/service/screen/dashboard |
---|---|
请求方式 | POST |
请求参数 | 无 |
返回结果
{
"c5": 8.6,
"count": 42081,
"datetime": "20180410 1715",
"g5len": 428,
"g5t": 2387,
"lastWeekAreaIndexList": [
"8.5",
"8.7",
"8.3",
"7.9",
"6.0",
"6.3",
"5.6"
],
"lastWeekIndexList": [
"1.1",
"1.2",
"1.1",
"1.2",
"1.2",
"1.2",
"1.3",
"1.3",
"1.3",
"1.3",
"1.2",
"1.4",
"1.3",
"1.4",
"1.5",
"1.6",
"1.5",
"1.7",
"1.3",
"1.3",
"1.3",
"1.1",
"1.0",
"0.9",
"1.1",
"1.2",
"1.3",
"1.7",
"2.7",
"3.9",
"5.9",
"6.8",
"7.2",
"7.5",
"7.5",
"7.3",
"7.0",
"6.5",
"6.2",
"6.2",
"6.0",
"5.6",
"5.1",
"4.8",
"4.1",
"3.6",
"3.3",
"3.2",
"3.1",
"2.7",
"2.4",
"2.2",
"2.1",
"2.2",
"2.4",
"2.7",
"3.0",
"3.4",
"3.6",
"3.8",
"4.2",
"4.8",
"5.3",
"6.0",
"6.4",
"6.7",
"7.0",
"7.4",
"7.8",
"8.0",
"8.3",
"8.4",
"8.5",
"8.5",
"8.5",
"8.4",
"8.3",
"8.1",
"7.6",
"7.0",
"6.3",
"5.6",
"5.3",
"4.6",
"3.8",
"3.2",
"2.8",
"2.5",
"2.2",
"2.0",
"1.8",
"1.5",
"1.4",
"1.4",
"1.2",
"1.3",
"'-'"
],
"msg": "",
"nowAreaIndexList": [
"6.4",
"6.7",
"6.3",
"3.8",
"2.7",
"2.7",
"3.0"
],
"nowDate": "2018-04-10 ",
"nowIndex": "4.7",
"nowIndexList": [
"1.3",
"1.2",
"1.1",
"1.1",
"1.2",
"1.2",
"1.1",
"1.2",
"1.2",
"1.2",
"1.2",
"1.4",
"1.3",
"1.2",
"1.6",
"1.2",
"1.2",
"1.6",
"1.4",
"1.2",
"1.1",
"1.0",
"1.1",
"1.1",
"0.9",
"1.0",
"1.2",
"1.5",
"2.2",
"3.5",
"5.0",
"6.2",
"6.7",
"6.8",
"6.9",
"6.7",
"6.2",
"5.8",
"5.4",
"5.1",
"5.1",
"4.7",
"4.1",
"3.9",
"3.4",
"3.0",
"2.8",
"2.5",
"2.5",
"2.4",
"2.3",
"2.2",
"2.2",
"2.3",
"2.4",
"2.6",
"3.0",
"3.1",
"3.2",
"3.2",
"3.2",
"3.1",
"3.1",
"3.0",
"3.4",
"3.5",
"3.5",
"3.7",
"4.2",
"4.7",
"'-'",
"'-'",
"'-'",
"'-'",
"'-'",
"'-'",
"'-'",
"'-'",
"'-'",
"'-'",
"'-'",
"'-'",
"'-'",
"'-'",
"'-'",
"'-'",
"'-'",
"'-'",
"'-'",
"'-'",
"'-'",
"'-'",
"'-'",
"'-'",
"'-'",
"'-'",
"'-'"
],
"nowSpeed": "25.6",
"nowTime": "17:15",
"roadMap": {
"300093": {
"id": "",
"lastHourSpeed": 37.400001525878906,
"lastWeekSpeed": 20.700000762939453,
"nowSpeed": 22.600000381469727,
"percent": "-39.5%",
"roadName": "京通快速路(出城)"
},
"300094": {
"id": "",
"lastHourSpeed": 67.19999694824219,
"lastWeekSpeed": 57.20000076293945,
"nowSpeed": 56.29999923706055,
"percent": "-16.2%",
"roadName": "京通快速路(进城)"
},
"400059": {
"id": "",
"lastHourSpeed": 40.29999923706055,
"lastWeekSpeed": 20.700000762939453,
"nowSpeed": 25.899999618530273,
"percent": "-35.7%",
"roadName": "G6京è—高速(出城)"
},
"400060": {
"id": "",
"lastHourSpeed": 54.70000076293945,
"lastWeekSpeed": 36.5,
"nowSpeed": 54.79999923706055,
"percent": "0.1%",
"roadName": "G6京è—高速(进城)"
},
"400065": {
"id": "",
"lastHourSpeed": 39,
"lastWeekSpeed": 17.299999237060547,
"nowSpeed": 30.100000381469727,
"percent": "-22.8%",
"roadName": "机场高速(出城)"
},
"400066": {
"id": "",
"lastHourSpeed": 42,
"lastWeekSpeed": 32.5,
"nowSpeed": 31.100000381469727,
"percent": "-25.9%",
"roadName": "机场高速(进城)"
},
"400087": {
"id": "",
"lastHourSpeed": 59.20000076293945,
"lastWeekSpeed": 32,
"nowSpeed": 68.5999984741211,
"percent": "15.8%",
"roadName": "G45京开高速(进城)"
},
"400088": {
"id": "",
"lastHourSpeed": 36.29999923706055,
"lastWeekSpeed": 17.799999237060547,
"nowSpeed": 14.100000381469727,
"percent": "-61.1%",
"roadName": "G45京开高速(出城)"
},
"400089": {
"id": "",
"lastHourSpeed": 62.70000076293945,
"lastWeekSpeed": 64.30000305175781,
"nowSpeed": 68.9000015258789,
"percent": "9.8%",
"roadName": "G4京港澳高速(进城)"
},
"400090": {
"id": "",
"lastHourSpeed": 62,
"lastWeekSpeed": 26.5,
"nowSpeed": 49.29999923706055,
"percent": "-20.4%",
"roadName": "G4京港澳高速(出城)"
}
},
"startTime": 48,
"times": [
"00:00",
"00:15",
"00:30",
"00:45",
"01:00",
"01:15",
"01:30",
"01:45",
"02:00",
"02:15",
"02:30",
"02:45",
"03:00",
"03:15",
"03:30",
"03:45",
"04:00",
"04:15",
"04:30",
"04:45",
"05:00",
"05:15",
"05:30",
"05:45",
"06:00",
"06:15",
"06:30",
"06:45",
"07:00",
"07:15",
"07:30",
"07:45",
"08:00",
"08:15",
"08:30",
"08:45",
"09:00",
"09:15",
"09:30",
"09:45",
"10:00",
"10:15",
"10:30",
"10:45",
"11:00",
"11:15",
"11:30",
"11:45",
"12:00",
"12:15",
"12:30",
"12:45",
"13:00",
"13:15",
"13:30",
"13:45",
"14:00",
"14:15",
"14:30",
"14:45",
"15:00",
"15:15",
"15:30",
"15:45",
"16:00",
"16:15",
"16:30",
"16:45",
"17:00",
"17:15",
"17:30",
"17:45",
"18:00",
"18:15",
"18:30",
"18:45",
"19:00",
"19:15",
"19:30",
"19:45",
"20:00",
"20:15",
"20:30",
"20:45",
"21:00",
"21:15",
"21:30",
"21:45",
"22:00",
"22:15",
"22:30",
"22:45",
"23:00",
"23:15",
"23:30",
"23:45",
"24:00"
]
}
北京局域网大屏:
请求地址 | http://10.212.129.199:8082/fcd/k8 |
---|---|
请求方式 | GET |
请求参数 | dt=20180410&tm=1725 |
统一
请求地址 | ${URI_BASE}/service/mainroad/summary |
---|---|
请求方式 | POST |
请求参数 | { "dt":"20180410", "tm":"1725" } |
返回结果
{
"300093": {
"k8": "1.4",
"lastHourSpeed": 37.42,
"nowSpeed": 31.6,
"percent": "-15.6%",
"roadId": 300093,
"roadName": "京通快速路(出城)"
},
"400089": {
"k8": "1.1",
"lastHourSpeed": 68.95,
"nowSpeed": 69.6,
"percent": "0.9%",
"roadId": 400089,
"roadName": "G4京港澳高速(进城)"
},
"400090": {
"k8": "1.2",
"lastHourSpeed": 62.28,
"nowSpeed": 57.1,
"percent": "-8.3%",
"roadId": 400090,
"roadName": "G4京港澳高速(出城)"
}
}
北京局域网大屏:
请求地址 | http://10.212.129.176:8080/fcd/service/path/speed/dashboard |
---|---|
请求方式 | POST |
统一
请求地址 | ${URI_BASE}/service/path/speed/dashboard |
---|---|
请求方式 | POST |
返回结果
{
"data": {
"path": [
{
"datetime": "2018-04-10 20:22",
"groupId": 81,
"k8": "-",
"pathClass": 0,
"pathId": 600,
"pathLength": "15,581.3",
"pathName": "中心城区路网",
"sampleNumber": 36655,
"speedCurrent": 23.7,
"speedDelta": -0.5,
"speedLast01h": 21.4,
"speedLast05m": 24.2,
"speedLast15m": 24.0,
"travelTime": "39,446.4"
},
{
"datetime": "2018-04-10 20:22",
"groupId": 81,
"k8": "-",
"pathClass": 1,
"pathId": 601,
"pathLength": "962.4",
"pathName": "中心城区快速路",
"sampleNumber": 7352,
"speedCurrent": 47.2,
"speedDelta": -0.6,
"speedLast01h": 36.6,
"speedLast05m": 47.8,
"speedLast15m": 49.0,
"travelTime": "1,223.4"
},
{
"datetime": "2018-04-10 20:22",
"groupId": 81,
"k8": "-",
"pathClass": 2,
"pathId": 602,
"pathLength": "1,529.1",
"pathName": "中心城区主干路",
"sampleNumber": 27421,
"speedCurrent": 31.1,
"speedDelta": -1.1,
"speedLast01h": 27.7,
"speedLast05m": 32.2,
"speedLast15m": 31.9,
"travelTime": "2,950.0"
}
]
},
"message": "",
"status": 200
}
北京局域网大屏:
请求地址 | http://10.212.129.171:8082/geoserver/fcd/wms |
---|---|
请求方式 | GET |
请求参数 | SERVICE=WMS VERSION=1.1.1 REQUEST=GetMap FORMAT=image/png TRANSPARENT=true LAYERS=fcd:lyr_utm_k4 SRS=EPSG:900913 viewparams=dt:20180410;tm:1900 BBOX=12953936.05754539,4852834.05176927,12973503.936786395,4872401.931010275 |
北京局域网大屏:
请求地址 | http://10.212.129.176:8080/screen/dayanalyse.do?target=getData |
---|---|
请求方式 | GET |
请求参数 | sdate=2018-04-03&edate=2018-04-09 |
* 需要注意更换数据服务数据库地址
{"startTime":48,"times":["00:00","00:15","00:30","00:45","01:00","01:15","01:30","01:45","02:00","02:15","02:30","02:45","03:00","03:15","03:30","03:45","04:00","04:15","04:30","04:45","05:00","05:15","05:30","05:45","06:00","06:15","06:30","06:45","07:00","07:15","07:30","07:45","08:00","08:15","08:30","08:45","09:00","09:15","09:30","09:45","10:00","10:15","10:30","10:45","11:00","11:15","11:30","11:45","12:00","12:15","12:30","12:45","13:00","13:15","13:30","13:45","14:00","14:15","14:30","14:45","15:00","15:15","15:30","15:45","16:00","16:15","16:30","16:45","17:00","17:15","17:30","17:45","18:00","18:15","18:30","18:45","19:00","19:15","19:30","19:45","20:00","20:15","20:30","20:45","21:00","21:15","21:30","21:45","22:00","22:15","22:30","22:45","23:00","23:15","23:30","23:45","24:00"],"nowIndexList":["1.2","1.2","1.2","1.2","1.1","1.4","1.2","1.3","1.3","1.3","1.3","1.4","1.4","1.4","1.7","1.7","1.6","1.7","1.4","1.3","1.3","1.2","1.2","1.0","1.0","1.0","1.2","1.7","2.5","3.8","5.7","6.8","7.6","7.7","7.8","7.4","7.2","6.6","6.4","6.3","6.3","6.0","6.0","5.6","5.1","4.3","3.9","3.3","2.8","2.7","2.7","2.4","2.4","2.5","2.7","3.1","3.3","3.3","3.3","3.4","3.5","3.5","3.7","3.8","3.8","3.7","4.0","4.1","4.7","5.4","6.7","7.1","7.3","7.4","7.2","6.9","6.6","5.7","4.4","3.6","3.0","2.7","2.6","2.4","2.1","2.0","2.0","1.9","1.9","1.6","1.6","1.5","1.3","1.2","1.2","1.1","'-'"],"compareIndexList":["1.1","1.2","1.1","1.2","1.2","1.2","1.3","1.3","1.3","1.3","1.2","1.4","1.3","1.4","1.5","1.6","1.5","1.7","1.3","1.3","1.3","1.1","1.0","0.9","1.1","1.2","1.3","1.7","2.7","3.9","5.9","6.8","7.2","7.5","7.5","7.3","7.0","6.5","6.2","6.2","6.0","5.6","5.1","4.8","4.1","3.6","3.3","3.2","3.1","2.7","2.4","2.2","2.1","2.2","2.4","2.7","3.0","3.4","3.6","3.8","4.2","4.8","5.3","6.0","6.4","6.7","7.0","7.4","7.8","8.0","8.3","8.4","8.5","8.5","8.5","8.4","8.3","8.1","7.6","7.0","6.3","5.6","5.3","4.6","3.8","3.2","2.8","2.5","2.2","2.0","1.8","1.5","1.4","1.4","1.2","1.3","'-'"],"nowAreaIndexList":["7.5","7.9","6.8","6.3","4.3","4.7","3.6"],"compareAreaIndexList":["7.8","8.1","7.2","7.2","6.5","6.5","4.9"],"differ":{"amBlockNum":"119","amBlockPercent":"9%","amSpeed":"0.1","blockLevel":"-","index":"-0.7%","pmBlockNum":"-4776.0","pmBlockPercent":"-517%","pmSpeed":"4.6"},"range":{"amBlockNum":"4%","amBlockPercent":"2%","amSpeed":"0%","blockLevel":"-","index":"-9%","pmBlockNum":"-60%","pmBlockPercent":"-45%","pmSpeed":"27%"},"nowDayPandect":{"amBlockNum":"2840","amBlockPercent":"584","amSpeed":"23.3","blockLevel":"严重拥堵","index":"6.8","pmBlockNum":"3232","pmBlockPercent":"631","pmSpeed":"21.7"},"compareDayPandect":{"amBlockNum":"2721","amBlockPercent":"575","amSpeed":"23.2","blockLevel":"严重拥堵","index":"7.5","pmBlockNum":"8008","pmBlockPercent":"1148","pmSpeed":"17.1"}}
请求地址 | http://10.212.129.176:8080/screen/monthanalyse.do?target=getData |
---|---|
请求参数 | year=2018&month=2 |
返回结果
{"nowMonthIndex":{"basicExpediteDayNum":4,"blockDayNum":0,"expediteDayNum":8,"index":3.2,"littleBlockDayNum":8,"middleBlockDayNum":0,"name":"2018年"},"lastMonthIndex":{"basicExpediteDayNum":0,"blockDayNum":0,"expediteDayNum":1,"index":5.1,"littleBlockDayNum":18,"middleBlockDayNum":4,"name":"2018年"},"lastYearIndex":{"basicExpediteDayNum":8,"blockDayNum":0,"expediteDayNum":1,"index":4.2,"littleBlockDayNum":6,"middleBlockDayNum":3,"name":"2017年"},"dayList":["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28"],"dayavgk3List":[4,5.9,2.9,2.2,5.4,5.4,5.4,5.1,5.3,3.2,5.1,2.9,2,1.4,1.2,1.3,1.3,1.3,1.3,1.4,1.3,1.7,2.1,2,2.3,4,4.2,4.4],"ampeakk3List":[2.8,3.6,1.1,0.9,4,4.4,3.8,3.7,3.7,1.3,3.8,2.6,1.7,1.4,1.1,1.1,1.2,1.2,1.1,1.2,1.1,1.6,1.9,1.7,2.1,4.8,4.8,4.6],"pmpeakk3List":[5.2,8.1,4.8,3.5,6.8,6.5,7,6.5,7,5.1,6.3,3.2,2.4,1.5,1.3,1.4,1.5,1.5,1.5,1.6,1.6,1.9,2.3,2.4,2.4,3.2,3.6,4.2]}
用于提供不同类型数据的情况
请求地址 | http://10.212.129.171:8080/service/dataSummary |
---|---|
请求参数 | dt=20170808 |
返回格式
{
"status": 200,
"message": "",
"error": "",
"data": {
"taxi": {
"total": 63482,
"online": 49324,
"inservice": 12709,
"unit_inservice": "辆",
"unit_total": "辆",
"unit_online": "辆",
},
"zjhz":{
"total": 33482,
"online": 2324,
"unit_total": "辆",
"unit_online": "辆"
},
"rtms":{
"total": 1538,
"online": 1473,
"unit_total": "个",
"unit_online": "个"
},
"metro":{
"mileage": 574,
"swipe": 11033324,
"unit_mileage": "公里",
"unit_swipe": "次"
}
}
用于监测某天某类型数据的数据量变化情况,包括但不限于记录数、设备数、在线数等等。
需要注意的是,参数日期和当天日期相同时,返回结果只取回当日00:00到参数时刻tm指定时间段以内的数据。当参数日期和当天日期不同时,返回结果取回参数日期全天00:00到24:00的全部数据
请求地址 | http://10.212.129.171:8080/service/dataQuality |
---|---|
请求参数 | dt=20170808&tm=0800&type=taxi |
{
"status": 200,
"message": "",
"error": "",
"data": {
"xAxis": [ "00:00", "00:05", "00:10", ..., "24:00"],
"series":
[
{
"unit": "辆",
"name": "在线车辆数"
"data":[ 1, 2, 3, 4, "-", 6, ..., 43]
},
{
"unit": "辆",
"name": "全部车辆数"
"data":[ 1, 2, 3, 4, "-", 6, ..., 43]
},
{
"unit": "辆",
"name": "载客车辆数"
"data":[ 1, 2, 3, 4, "-", 6, ..., 43]
}
]
}
}
请求地址 | http://10.212.129.171:8080/service/dataQuality |
---|---|
请求参数 | dt=20170808&tm=0800&type=zjhz |
{
"status": 200,
"message": "",
"error": "",
"data": {
"xAxis": [ "00:00", "00:05", "00:10", ..., "24:00"],
"series":
[
{
"unit": "辆",
"name": "在线车辆数"
"data":[ 1, 2, 3, 4, "-", 6, ..., 43]
},
{
"unit": "辆",
"name": "全部车辆数"
"data":[ 1, 2, 3, 4, "-", 6, ..., 43]
}
]
}
}
请求地址 | http://10.212.129.171:8080/service/dataQuality |
---|---|
请求参数 | dt=20170808&tm=0800&type=rtms |
{
"status": 200,
"message": "",
"error": "",
"data": {
"xAxis": [ "00:00", "00:05", "00:10", ..., "24:00"],
"series":
[
{
"unit": "套",
"name": "总设备数"
"data":[ 1, 2, 3, 4, "-", 6, ..., 43]
},
{
"unit": "套",
"name": "正常设备数"
"data":[ 1, 2, 3, 4, "-", 6, ..., 43]
}
]
}
}
请求地址 | http://10.212.129.171:8080/service/dataQuality |
---|---|
请求参数 | dt=20170808&tm=0800&type=bus |
{
"status": 200,
"message": "",
"error": "",
"data": {
"xAxis": [ "00:00", "00:05", "00:10", ..., "24:00"],
"series":
[
{
"unit": "次",
"name": "刷卡量"
"data":[ 1, 2, 3, 4, "-", 6, ..., 43]
}
]
}
}
请求地址 | http://10.212.129.171:8080/service/dataQuality |
---|---|
请求参数 | dt=20170808&tm=0800&type=metro |
{
"status": 200,
"message": "",
"error": "",
"data": {
"xAxis": [ "00:00", "00:05", "00:10", ..., "24:00"],
"series":
[
{
"unit": "次",
"name": "刷卡量"
"data":[ 1, 2, 3, 4, "-", 6, ..., 43]
}
]
}
}