使用前需知

使用API请求方式为GET,头部需要添加如下信息:

  "User-Agent":"WayBook/3114 (iPhone; iOS 10.2.1; Scale/2.00)"

  "version":"ios-com.travelincity.WayBook-3114"

查询某车次信息

http://60.216.101.229/server-ue2/rest/buslines/simple/370100/119/0/20

{
"status": {
    "code": 0,
    "msg": ""
},
"result": {
    "pageParam": {
        "offset": 0,
        "len": 20,
        "totalNum": 2
    },
    "result": [{
        "id": "626",
        "lineName": "119",
        "startStationName": "解放桥北",
        "endStationName": "高新区管委会",
        "updateTime": "Oct 22, 2016 09:12:41 PM"
    }, {
        "id": "627",
        "lineName": "119",
        "startStationName": "高新区管委会",
        "endStationName": "解放桥北",
        "updateTime": "Oct 22, 2016 09:12:41 PM"
    }]
}

}

查询某车次车辆信息

http://60.216.101.229/server-ue2/rest/buses/busline/370100/626

{
"status": {
    "code": 0,
    "msg": ""
},
"result": [{
    "busId": "k7115",
    "lng": 117.043701,
    "lat": 36.661758,
    "velocity": 14.637927147310137,
    "isArrvLft": "2",
    "stationSeqNum": 4,
    "status": "1",
    "buslineId": "626",
    "actTime": "Feb 28, 2017 02:47:36 PM",
    "cardId": "k7115",
    "orgName": "",
    "averageVelocity": 9.617714694801721,
    "coordinate": 0
}, {
    "busId": "k4756",
    "lng": 117.129258,
    "lat": 36.658146,
    "velocity": 20.612236280532937,
    "isArrvLft": "2",
    "stationSeqNum": 18,
    "status": "1",
    "buslineId": "626",
    "actTime": "Feb 28, 2017 02:48:03 PM",
    "cardId": "k4756",
    "orgName": "",
    "averageVelocity": 14.20242130390918,
    "coordinate": 0
}, {
    "busId": "4930",
    "lng": 117.09648,
    "lat": 36.657035,
    "velocity": 29.92720885319345,
    "isArrvLft": "2",
    "stationSeqNum": 14,
    "status": "1",
    "buslineId": "626",
    "actTime": "Feb 28, 2017 02:46:26 PM",
    "cardId": "4930",
    "orgName": "",
    "averageVelocity": 14.392172603232366,
    "coordinate": 0
}, {
    "busId": "4940",
    "lng": 117.126201,
    "lat": 36.680646,
    "velocity": 17.869428854427756,
    "isArrvLft": "2",
    "stationSeqNum": 24,
    "status": "1",
    "buslineId": "626",
    "actTime": "Feb 28, 2017 02:48:14 PM",
    "cardId": "4940",
    "orgName": "",
    "averageVelocity": 15.254815904004937,
    "coordinate": 0
}, {
    "busId": "4933",
    "lng": 117.06898,
    "lat": 36.654258,
    "velocity": 42.0223102853153,
    "isArrvLft": "2",
    "stationSeqNum": 10,
    "status": "1",
    "buslineId": "626",
    "actTime": "Feb 28, 2017 02:48:53 PM",
    "cardId": "4933",
    "orgName": "",
    "averageVelocity": 12.28398160927543,
    "coordinate": 0
}]

}

查询某车次站点信息

http://60.216.101.229/server-ue2/rest/buslines/370100/577

{
"status": {
    "code": 0,
    "msg": ""
},
"result": {
    "id": "577",
    "area": 370100,
    "lineName": "1",
    "startStationName": "营市街经十路",
    "endStationName": "洪家楼",
    "stations": [{
        "id": "1",
        "area": 370100,
        "stationName": "营市街经十路",
        "lng": 116.96724295683,
        "lat": 36.65563239727,
        "buslines": "",
        "state": "0",
        "updateTime": "Oct 22, 2016 09:12:39 PM",
        "distance": 0.0,
        "busLineList": []
    }, {
        "id": "2",
        "area": 370100,
        "stationName": "营市街经六路",
        "lng": 116.96913597481,
        "lat": 36.660116506743,
        "buslines": "",
        "state": "0",
        "updateTime": "Oct 22, 2016 09:12:39 PM",
        "distance": 0.0,
        "busLineList": []
    }, {
        "id": "3",
        "area": 370100,
        "stationName": "经四路西口",
        "lng": 116.97271754718,
        "lat": 36.663182622482,
        "buslines": "",
        "state": "0",
        "updateTime": "Oct 22, 2016 09:12:39 PM",
        "distance": 0.0,
        "busLineList": []
    }, {
        "id": "4",
        "area": 370100,
        "stationName": "经四纬十二",
        "lng": 116.97857707464,
        "lat": 36.663553144733,
        "buslines": "",
        "state": "0",
        "updateTime": "Oct 22, 2016 09:12:39 PM",
        "distance": 0.0,
        "busLineList": []
    }, {
        "id": "5",
        "area": 370100,
        "stationName": "经二纬十二",
        "lng": 116.97896137556,
        "lat": 36.665230441023,
        "buslines": "",
        "state": "0",
        "updateTime": "Oct 22, 2016 09:12:39 PM",
        "distance": 0.0,
        "busLineList": []
    }, {
        "id": "6",
        "area": 370100,
        "stationName": "华联商厦",
        "lng": 116.98370174748,
        "lat": 36.66731472811,
        "buslines": "",
        "state": "0",
        "updateTime": "Oct 22, 2016 09:12:39 PM",
        "distance": 0.0,
        "busLineList": []
    }, {
        "id": "7",
        "area": 370100,
        "stationName": "经二纬八",
        "lng": 116.98704356852,
        "lat": 36.668215601526,
        "buslines": "",
        "state": "0",
        "updateTime": "Oct 22, 2016 09:12:39 PM",
        "distance": 0.0,
        "busLineList": []
    }, {
        "id": "8",
        "area": 370100,
        "stationName": "经二纬六",
        "lng": 116.99140061954,
        "lat": 36.669226319322,
        "buslines": "",
        "state": "0",
        "updateTime": "Oct 22, 2016 09:12:39 PM",
        "distance": 0.0,
        "busLineList": []
    }, {
        "id": "9",
        "area": 370100,
        "stationName": "经二纬五",
        "lng": 116.99591265822,
        "lat": 36.670217672381,
        "buslines": "",
        "state": "0",
        "updateTime": "Oct 22, 2016 09:12:39 PM",
        "distance": 0.0,
        "busLineList": []
    }, {
        "id": "10",
        "area": 370100,
        "stationName": "经二纬二",
        "lng": 117.001059936,
        "lat": 36.671403113603,
        "buslines": "",
        "state": "0",
        "updateTime": "Oct 22, 2016 09:12:39 PM",
        "distance": 0.0,
        "busLineList": []
    }, {
        "id": "11",
        "area": 370100,
        "stationName": "经二纬一",
        "lng": 117.00652828222,
        "lat": 36.672495203173,
        "buslines": "",
        "state": "0",
        "updateTime": "Oct 22, 2016 09:12:39 PM",
        "distance": 0.0,
        "busLineList": []
    }, {
        "id": "12",
        "area": 370100,
        "stationName": "市法院",
        "lng": 117.0124289692,
        "lat": 36.671010176048,
        "buslines": "",
        "state": "0",
        "updateTime": "Oct 22, 2016 09:12:39 PM",
        "distance": 0.0,
        "busLineList": []
    }, {
        "id": "13",
        "area": 370100,
        "stationName": "普利街",
        "lng": 117.01623143899,
        "lat": 36.670433216767,
        "buslines": "",
        "state": "0",
        "updateTime": "Oct 22, 2016 09:12:39 PM",
        "distance": 0.0,
        "busLineList": []
    }, {
        "id": "14",
        "area": 370100,
        "stationName": "趵突泉东门",
        "lng": 117.02607891358,
        "lat": 36.668615936087,
        "buslines": "",
        "state": "0",
        "updateTime": "Oct 22, 2016 09:12:39 PM",
        "distance": 0.0,
        "busLineList": []
    }, {
        "id": "15",
        "area": 370100,
        "stationName": "泉城广场北",
        "lng": 117.03177713265,
        "lat": 36.669011739356,
        "buslines": "",
        "state": "0",
        "updateTime": "Oct 22, 2016 09:12:39 PM",
        "distance": 0.0,
        "busLineList": []
    }, {
        "id": "16",
        "area": 370100,
        "stationName": "青龙桥南",
        "lng": 117.04024111882,
        "lat": 36.670679298446,
        "buslines": "",
        "state": "0",
        "updateTime": "Oct 22, 2016 09:12:39 PM",
        "distance": 0.0,
        "busLineList": []
    }, {
        "id": "17",
        "area": 370100,
        "stationName": "解放桥东",
        "lng": 117.05011230545,
        "lat": 36.672044332356,
        "buslines": "",
        "state": "0",
        "updateTime": "Oct 22, 2016 09:12:39 PM",
        "distance": 0.0,
        "busLineList": []
    }, {
        "id": "18",
        "area": 370100,
        "stationName": "中心医院",
        "lng": 117.05420113224,
        "lat": 36.672018062723,
        "buslines": "",
        "state": "0",
        "updateTime": "Oct 22, 2016 09:12:39 PM",
        "distance": 0.0,
        "busLineList": []
    }, {
        "id": "19",
        "area": 370100,
        "stationName": "解放路山大路",
        "lng": 117.06032330543,
        "lat": 36.671904309417,
        "buslines": "",
        "state": "0",
        "updateTime": "Oct 22, 2016 09:12:39 PM",
        "distance": 0.0,
        "busLineList": []
    }, {
        "id": "20",
        "area": 370100,
        "stationName": "山大路山大南路",
        "lng": 117.06265724449,
        "lat": 36.678877009166,
        "buslines": "",
        "state": "0",
        "updateTime": "Oct 22, 2016 09:12:39 PM",
        "distance": 0.0,
        "busLineList": []
    }, {
        "id": "21",
        "area": 370100,
        "stationName": "山大路花园庄东路",
        "lng": 117.06265328453,
        "lat": 36.682596627047,
        "buslines": "",
        "state": "0",
        "updateTime": "Oct 22, 2016 09:12:39 PM",
        "distance": 0.0,
        "busLineList": []
    }, {
        "id": "22",
        "area": 370100,
        "stationName": "花园路山大路",
        "lng": 117.06220244725,
        "lat": 36.687816744313,
        "buslines": "",
        "state": "0",
        "updateTime": "Oct 22, 2016 09:12:39 PM",
        "distance": 0.0,
        "busLineList": []
    }, {
        "id": "23",
        "area": 370100,
        "stationName": "洪家楼西路",
        "lng": 117.06881596783,
        "lat": 36.689175283276,
        "buslines": "",
        "state": "0",
        "updateTime": "Oct 22, 2016 09:12:39 PM",
        "distance": 0.0,
        "busLineList": []
    }, {
        "id": "24",
        "area": 370100,
        "stationName": "洪家楼",
        "lng": 117.07411720853,
        "lat": 36.690176057512,
        "buslines": "",
        "state": "0",
        "updateTime": "Oct 22, 2016 09:12:39 PM",
        "distance": 0.0,
        "busLineList": []
    }],
    "ticketPrice": "1:票价一元  K1:票价两元",
    "operationTime": "营市街经十路:5:00-22:30洪家楼:5:00-22:30",
    "owner": "",
    "linePoints": "116.96724295683_36.65563239727,116.96913597481_36.660116506743,116.97271754718_36.663182622482,116.97857707464_36.663553144733,116.97896137556_36.665230441023,116.98370174748_36.66731472811,116.98704356852_36.668215601526,116.99140061954_36.669226319322,116.99591265822_36.670217672381,117.001059936_36.671403113603,117.00652828222_36.672495203173,117.0124289692_36.671010176048,117.01623143899_36.670433216767,117.02607891358_36.668615936087,117.03177713265_36.669011739356,117.04024111882_36.670679298446,117.05011230545_36.672044332356,117.05420113224_36.672018062723,117.06032330543_36.671904309417,117.06265724449_36.678877009166,117.06265328453_36.682596627047,117.06220244725_36.687816744313,117.06881596783_36.689175283276,117.07411720853_36.690176057512",
    "description": "",
    "updateOwner": "sys-upgrade",
    "updateTime": "Oct 22, 2016 09:12:39 PM",
    "state": "0"
}

}


Android自动化测试的一个总结

2017-02-21(二) by chenjia.me

Android 自动化测试

因为这两年都在研究Android安全,不知不觉的积累了许多自动化测试的知识。也是门外汉一步一步的学习过来 …

read more

发现那些尝试登入你SSH的ip

2015-02-05(四) by chenjia.me

发现

今天看到有人在v2ex说浙江的肉鸡好多~想到当时我的vnc端口也被暴力登录过,就好奇心一下!看了一下我SSH的登录日志 …

read more