淄博暢行電子科技有限公司
主營油管家。TEL:138-6440-1440
為了方便exlive用戶進(jìn)行手機(jī)APP的二次開發(fā),exlive1.0平臺開發(fā)了APP二次開發(fā)接口,支持登錄接口、當(dāng)前用戶車輛的詳細(xì)信息、車輛的詳細(xì)位置信息、里程統(tǒng)計(jì)查詢、警情報(bào)警查詢、車輛軌跡查詢等接口的調(diào)用。
1、登錄接口,用于用戶的登錄:
http://" +服務(wù)器ip + ":89/gpsonline/NBAPI
參數(shù)
參數(shù) | 類型 | 說明 |
---|---|---|
version | String | 版本號 |
method | String |
企業(yè)用戶:loginSystemInUser 個(gè)人用戶 :loginSystemInVehicle |
name | String | 用戶名 |
pwd | String | 密碼 |
Key | String | 登錄類型 |
m | String | 用戶登陸成功key |
返回:
{
"port": 6266,
"uid": 2314223,
"sid": 10997,
"sip": "114.215.45.206",
"sname": "廣東省322",
"success": true,
"key": "ae3de561cbf500295ee2d1fd25d12266",
"entCode": "",
"userType": 1,
"version": 2
}
2、當(dāng)前用戶車輛的清單,包含車輛詳細(xì)信息、車輛的詳細(xì)位置信息等:
http://" + 服務(wù)器ip + ":89/gpsonline/NBAPI
參數(shù)-體驗(yàn)賬號
參數(shù) | 類型 | 說明 |
---|---|---|
method | String | 方法: experience |
uid | String | 用戶ID |
key | String | 用戶key |
參數(shù)-企業(yè)或個(gè)人賬號
參數(shù) | 類型 | 說明 |
---|---|---|
version | String | 版本號 |
method | String | 方法: loadVehicleTreeInUser |
uid | String | 用戶ID |
key | String | 用戶key |
method | String | 方法: experience |
返回:
{
"version": 2,
"success": true,
"groups": [{
"id": 3260712,
"name": "備用車輛",
"onlines": 0,
"total": 5,
"vehicles": [{
"id": 8959906,
"name": "29號 新絲路專線 京AAP20",
"isOnline": true,
"recvtime": "2017-12-28 19:50:11",
"gpstime": "2017-12-28 19:50:09",
"mobile": "1064867783646",
"gprs": "13300185424",
"mobileId": 92,
"vehicleTypeId": 1,
"owner": "",
"phone": "",
"overdueDays": 10000,
"state": "停車超時(shí)(1時(shí)33分) 衛(wèi)星(19) GSM(20)",
"lat": 34.36505,
"lng": 109.06033,
"lat_xz": -0.001295,
"lng_xz": 0.005053,
"speed": 0,
"direct": 64,
"temp": 0,
"oil": 0,
"oilMN1": 0,
"oilMN2": 0,
"distance": 110.3,
"totalDis": 16503.27,
"av": "1",
"info": "陜西省 西安市 灞橋區(qū) 新筑街道 港務(wù)大道220號 港務(wù)大道 西安·華南城東117米",
"vhcofflinemin": 10,
"stopDefDis": 0,
"stopDefLat": 0,
"stopDefLng": 0,
"temp1": "",
"temp2": "",
"temp3": "",
"temp4": "",
"dayOil": 11,
"acc": 0,
"acc2": 0,
"oil1": 0,
"oil2": 0,
"icon": 0
}]
}],
"cmd": [{
"id": 1003,
"mobileId": 92,
"mask": 7000,
"mean": "連續(xù)回報(bào)",
"pass": " ",
"description": "設(shè)置車輛上傳數(shù)據(jù)的間隔,單位為秒",
"cmdlevel": 0,
"params": [{
"name": "回報(bào)間隔",
"size": "small",
"type": "int"
},
{
"name": "確認(rèn)密碼",
"size": "small",
"type": "password"
}
]},
{
"id": 2086,
"mobileId": 105,
"mask": 7561,
"mean": "設(shè)置分服務(wù)器APN",
"pass": "",
"description": "設(shè)置分服務(wù)器APN",
"cmdlevel": 0,
"params": [{
"name": "APN名稱",
"size": "small",
"type": "string",
"value": ""
},
{
"name": "用戶名",
"size": "small",
"type": "string",
"value": ""
},
{
"name": "用戶密碼",
"size": "small",
"type": "string",
"value": ""
}]
}],
"timestamp": 1514461833919
}
3、里程統(tǒng)計(jì)查詢:
http://" +服務(wù)器ip + ":89/exstatic/json/phoneVehicleAction_dailyReportByIds.action?
參數(shù)
參數(shù) | 類型 | 說明 |
---|---|---|
pids | String | 車輛ID |
btime | String | 開始時(shí)間 |
etime | String | 結(jié)束時(shí)間 |
返回:
{
"drListAll": [{
"totaldis": "0.0",
"drList": [{
"daydis": "0.0",
"date": "2017-12-28"
}],
"drCount": 1,
"vname": "t66yy6",
"vid": 9676417
}],
"flag": true
}
4、警情報(bào)警查詢:
http:// " +服務(wù)器ip + ":89/exstatic/json/vehicleAction_PhoneVehicleByuserId.action?
參數(shù)
參數(shù) | 類型 | 說明 |
---|---|---|
pids | String | 車輛ID |
btime | String | 開始時(shí)間 |
etime | String | 結(jié)束時(shí)間 |
返回:
{
"flag": true,
"accdata": [{
"id": 7669178,
"vhccode": "02號 中一線 京AAP055",
"acccount": 17,
"detailAlarm": [{
"direct": 270,
"recvtime": "2017-12-28 07:10:12",
"posinfo": "陜西省西安市新城區(qū)中山門街道解放路63-5號東新街民樂新都會(huì)商城西北86米",
"veo": "0.00",
"driver": "",
"cstate": "停車超時(shí)報(bào)警(1分)衛(wèi)星(13)GSM(27)",
"av": "1"
},
{
"direct": 92,
"recvtime": "2017-12-28 07:14:57",
"posinfo": "陜西省西安市新城區(qū)西一路街道東新街486號東新街新城國際東北80米",
"veo": "0.00",
"driver": "",
"cstate": "停車超時(shí)報(bào)警(1分)衛(wèi)星(18)GSM(31)",
"av": "1"
}]
}],
"vhcCount": 17
}
5、車輛軌跡查詢:
http://" +服務(wù)器ip + ":89/gpsonline/NBAPI?
參數(shù)
參數(shù) | 類型 | 說明 |
---|---|---|
version | String | 版本號 |
method | String | 方法 :loadHistory |
vid | String | 車輛Id |
bTime | String | 開始時(shí)間 |
eTime | String | 結(jié)束時(shí)間 |
uid | String | 用戶Id(僅企業(yè)用戶需要傳用戶ID) |
key | String | 用戶Key:企業(yè)和個(gè)人用戶傳key 體驗(yàn)賬號傳experience |
datatype | String | 是否回放停車點(diǎn) 0:沒有停車點(diǎn) 1:有停車點(diǎn) |
timeorder | String | 是否按GPSTIME回放 0 :衛(wèi)星時(shí)間, 1:服務(wù)器時(shí)間 |
返回:
{
"version": 2,
"success": true,
"history": [{
"av": "1",
"dir": 194,
"dis": 0,
"gpst": "2017-12-28 00:00:03",
"id": 10114,
"lat": 34.365166,
"lat_xz": -0.001321,
"lng": 109.0603,
"lng_xz": 0.005025,
"oil": 0,
"p1": 0,
"p2": 0,
"photo": "",
"posinfo": "陜西省 西安市 灞橋區(qū) 新筑街道 港務(wù)大道220號 港務(wù)大道 西安·華南城東北116米",
"recvt": "2017-12-28 00:00:05",
"roadlevel": 7,
"roadveo": 50,
"state": "停車超時(shí)報(bào)警(3時(shí)12分) 衛(wèi)星(16) GSM(16)",
"temp": 0,
"temp1": "127.0",
"temp2": "127.0",
"temp3": "127.0",
"temp4": "127.0",
"totaldistance": 32584.973,
"veo": 0
},
{
"av": "1",
"dir": 194,
"dis": 0,
"gpst": "2017-12-28 00:00:08",
"id": 10225,
"lat": 34.365166,
"lat_xz": -0.001321,
"lng": 109.0603,
"lng_xz": 0.005025,
"oil": 0,
"p1": 0,
"p2": 0,
"photo": "",
"posinfo": "陜西省 西安市 灞橋區(qū) 新筑街道 港務(wù)大道220號 港務(wù)大道 西安·華南城東北116米",
"recvt": "2017-12-28 00:00:10",
"roadlevel": 7,
"roadveo": 50,
"state": "停車超時(shí)報(bào)警(3時(shí)12分) 衛(wèi)星(16) GSM(16)",
"temp": 0,
"temp1": "127.0",
"temp2": "127.0",
"temp3": "127.0",
"temp4": "127.0",
"totaldistance": 32584.973,
"veo": 0
}]
}
聯(lián)系人:蘇經(jīng)理
手機(jī):138-6440-1440
電話:0533-2266656
QQ:107415444
電子郵箱:107415444@qq.com
地址:山東省淄博市張店區(qū)黃金廣場c座7樓723號