700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > 智启联云GPS定位平台API开发接口HTTP/MQTT

智启联云GPS定位平台API开发接口HTTP/MQTT

时间:2019-08-14 09:55:52

相关推荐

智启联云GPS定位平台API开发接口HTTP/MQTT

群名称:智启联云技术交流群

群号:602952071

http接口

用户登录

请求:

/UserLogin?username=4gtest&password=123456

响应:

{"Result": "ok","Message": "UserLoginSuccess","SessionId": "5665509C186DED95ED6D89EE1939D83F","AliasBool": false}

设备与分组数据

请求:

/LoadDeviceAndGroupFromCache?selaccount=4gtest&SessionId=FDF11A0009516124BDBD92ECC506&getgps=no&norequest=yes

响应:

{"Result": "ok","Message": "","Username": "4gtest","DeviceInfoArray": [{"Id": 230,"Username": "4gtest","Classid": 0,"DeviceNo": "869756049340471","UWBMAC": "","DeviceName": "CFIOT_EC20","DeviceIcon": "arrow","Remark": "","Pilot_name": "","Pilot_phone": "","Terminal_phone": "","Correctionvalue": 8,"Timezonevalue": 8,"Area": "","Endtime": "-03-19 00:00:00","Fencename": "","FenceLongitude": 0,"FenceLatitude": 0,"FenceLongitude1": 0,"FenceLatitude1": 0,"FenceLongitude2": 0,"FenceLatitude2": 0,"Fenceradius": 200,"Fenceallow": 0,"ProtocolType": "tianqin_osk","ManufacturerMark": "","ShareMark": false,"App_Healthy_parameter": "100|60|140|130|100|90|90|85|65|60","Filter_lbs_wifi": "1|0","BatteryMaxVoltage": 0,"BatteryMinVoltage": 0,"Follow": 1}, {"Id": 231,"Username": "4gtest","Classid": 0,"DeviceNo": "865324039996820","UWBMAC": "","DeviceName": "Neoway_N720","DeviceIcon": "lx_b","Remark": "","Pilot_name": "","Pilot_phone": "","Terminal_phone": "","Correctionvalue": 8,"Timezonevalue": 8,"Area": "","Endtime": "2039-03-20 00:00:00","Fencename": "","FenceLongitude": 0,"FenceLatitude": 0,"FenceLongitude1": 0,"FenceLatitude1": 0,"FenceLongitude2": 117.2428,"FenceLatitude2": 31.84674,"Fenceradius": 56982,"Fenceallow": 1,"ProtocolType": "gsms","ManufacturerMark": "","ShareMark": false,"App_Healthy_parameter": "100|60|140|130|100|90|90|85|65|60","Filter_lbs_wifi": "1|1","BatteryMaxVoltage": 0,"BatteryMinVoltage": 0,"Follow": 1}, {"Id": 331,"Username": "4gtest","Classid": 0,"DeviceNo": "9170951424","UWBMAC": "","DeviceName": "9170951424","DeviceIcon": "arrow","Remark": "","Pilot_name": "","Pilot_phone": "","Terminal_phone": "","Correctionvalue": 8,"Timezonevalue": 8,"Area": "","Endtime": "-08-16 00:00:00","Fencename": "","FenceLongitude": 0,"FenceLatitude": 0,"FenceLongitude1": 0,"FenceLatitude1": 0,"FenceLongitude2": 0,"FenceLatitude2": 0,"Fenceradius": 200,"Fenceallow": 0,"ProtocolType": "tianqin_osk","ManufacturerMark": "","ShareMark": false,"App_Healthy_parameter": "100|60|140|130|100|90|90|85|65|60","Filter_lbs_wifi": "1|0","BatteryMaxVoltage": 0,"BatteryMinVoltage": 0,"Follow": 0}],"ClassInfoaArray": [{"Id": -2,"Username": "4gtest","Classname": "Share Group"}, {"Id": 147,"Username": "4gtest","Classname": "Default Group"}],"GpsDatakey": {}}

表1

表2

GPS缓存数据

请求:

/RequestGpsData?funcname=&FirstRequest=false&selaccount=4gtest&SessionId=5665509C186DED95ED6D89EE1939D83F&_=1577761203897

响应:

{"Result": "ok","Message": "","Username": "4gtest","GpsDatakey": {"862607059076223": {"DeviceNo": "862607059076223","Ltype": 0,"Online": 1,"Longitude": 117.23088,"Latitude": 31.84247,"Longitude1": 117.23636,"Latitude1": 31.84046,"Longitude2": 117.24279,"Latitude2": 31.84682,"N_S": "N","E_W": "E","Speed": 0,"Direction": 250,"Mode": "A","DateTime": "-06-25T01:56:20Z","DateTime1": "-06-25 01:56:20","ReceiveTime": "-06-30T22:40:51.135536549+08:00","ReceiveTime1": "-06-30 22:40:51","Battery": -1,"BatteryVoltage": 0,"Oilquantity": -1,"Acc": 0,"Address": "","AddressUpdatetime": "0001-01-01T00:00:00Z","StayTime": 0,"NextBootTime": "","Shefangchefang": 0,"MainPower": 0,"LbsData": null,"WifiData": [],"CustomData": ""}},"AlarmDatakey": {}}

表1

表2

表3

设备最后位置

请求:

/GetLastGpsPoint?deviceno=84381128040&SessionId=EA110DD89EE11D4D12DD7764A32C4FB8

响应:

{"Result": "ok","Message": "","DeviceNo": "84381128040","DeviceInfo": {"Id": 0,"Username": "","Classid": 0,"DeviceNo": "","UWBMAC": "","DeviceName": "","DeviceIcon": "","Remark": "","Pilot_name": "","Pilot_phone": "","Terminal_phone": "","Correctionvalue": 0,"Timezonevalue": 0,"Area": "","Endtime": null,"Fencename": "","FenceLongitude": 0,"FenceLatitude": 0,"FenceLongitude1": 0,"FenceLatitude1": 0,"FenceLongitude2": 0,"FenceLatitude2": 0,"Fenceradius": 0,"Fenceallow": 0,"ProtocolType": "","ManufacturerMark": "","ShareMark": false,"App_Healthy_parameter": "","Filter_lbs_wifi": "","BatteryMaxVoltage": 0,"BatteryMinVoltage": 0,"Follow": 0},"GpsDatakey": {"84381128040": {"DeviceNo": "","Ltype": 0,"Online": 0,"Longitude": 0,"Latitude": 0,"Longitude1": 0,"Latitude1": 0,"Longitude2": 0,"Latitude2": 0,"N_S": "","E_W": "","Speed": 0,"Direction": 0,"Mode": "","DateTime": "0001-01-01T00:00:00Z","DateTime1": "","ReceiveTime": "0001-01-01T00:00:00Z","ReceiveTime1": "","Battery": -1,"BatteryVoltage": 0,"Oilquantity": 0,"Acc": 0,"Address": "","AddressUpdatetime": "0001-01-01T00:00:00Z","StayTime": 0,"NextBootTime": "","Shefangchefang": 0,"MainPower": 0,"LbsData": null,"WifiData": [],"CustomData": ""}}}

GPS轨迹数据

请求:

/RequestTrack1?deviceno=84390730103&startdate=-06-30%:24:48&enddate=-06-30%:59:59&SessionId=0CD901F1C2DAE4807FF56A59A414EB3A

响应:

{"Result": "ok","Message": "","Deviceno": "84390730103","Startdate": "-06-30 18:23:48","Enddate": "-06-30 18:25:59","Playindex": 0,"GpsDataArray": [["-06-30 18:23:54", "117.29784", "32.53654", "117.30343", "32.53448", "117.31005", "32.54016", "67", "102", "-1", "0", "0", ""],["-06-30 18:24:24", "117.30411", "32.53563", "117.30971", "32.53359", "117.31634", "32.53927", "75", "96", "-1", "0", "0", ""],["-06-30 18:24:54", "117.31087", "32.53527", "117.3165", "32.53325", "117.32309", "32.53903", "76", "93", "-1", "0", "0", ""],["-06-30 18:25:24", "117.31657", "32.53484", "117.3222", "32.53281", "117.32879", "32.5386", "52", "98", "-1", "0", "0", ""],["-06-30 18:25:54", "117.31862", "32.53456", "117.32425", "32.53253", "117.33084", "32.53832", "24", "97", "-1", "0", "0", ""]]}

表一

停留点数据

请求:

/QueryStopPoint?funcname=QueryStopPointResult&deviceno=84390730103&startdate=-06-30%:23:48&enddate=-06-30%:25:59&SessionId=0CD901F1C2DAE4807FF56A59A414EB3A

响应:

{"Result": "ok","Message": "","SelDeviceNo": "84390730103","Startdate": "-06-30 16:23:48","Enddate": "-06-30 20:25:59","Data": [{"DeviceNo": "84390730103","Start_Longitude": 117.07687,"Start_Latitude": 32.64736,"Start_Longitude1": 117.08252,"Start_Latitude1": 32.64547,"Start_Longitude2": 117.08911,"Start_Latitude2": 32.65125,"Radius": 122.16,"StartTime": "-06-30 15:03:32","StopTime": "-06-30 16:44:39","ResidenceTime": 6067,"StayPointsAddress": null}, {"DeviceNo": "84390730103","Start_Longitude": 117.07618,"Start_Latitude": 32.64855,"Start_Longitude1": 117.08183,"Start_Latitude1": 32.64666,"Start_Longitude2": 117.08841,"Start_Latitude2": 32.65244,"Radius": 169.52,"StartTime": "-06-30 16:44:49","StopTime": "-06-30 17:45:22","ResidenceTime": 3633,"StayPointsAddress": null}, {"DeviceNo": "84390730103","Start_Longitude": 117.79919,"Start_Latitude": 31.76009,"Start_Longitude1": 117.80466,"Start_Latitude1": 31.75806,"Start_Longitude2": 117.81121,"Start_Latitude2": 31.76383,"Radius": 135.84,"StartTime": "-06-30 19:49:46","StopTime": "-06-30 20:28:13","ResidenceTime": 2307,"StayPointsAddress": null}]}

表1

Mqtt接口

一个账号下的设备,需要处于关注状态,后台才会转发位置和报警信息到账号对应的数据发布主题,第三方系统订阅这个主题后,可以实时接收到经由后台转发的设备实时位置和报警信息。

实时位置

消息结构

{"MsgType": "gps","DeviceNo": "862607059076223","Online": 1,"Acc": 0,"Mode": "A","Latitude": 31.842539033333335,"Longitude": 117.23089605,"Latitude1": 31.840525033333336,"Longitude1": 117.23637805,"Latitude2": 31.846887333333335,"Longitude2": 117.24280885,"Speed": 0,"Direction": 157.8,"E_W": "E","N_S": "N","DateTime1": "-07-01 03:36:49","ReceiveTime1": "-07-01 03:36:49"}

实时报警

消息结构

{"MsgType": "Alarm","DeviceNo": "862607059076223","Data": {"DeviceNo": "862607059076223","DeviceName": "陈工测试","AlarmType": 100,"Longitude": 0,"Latitude": 0,"Longitude1": 0,"Latitude1": 0,"Longitude2": 0,"Latitude2": 0,"Speed": 0,"Direction": 0,"Mode": "","AlarmTime": "-07-01T02:44:06.411582188+08:00","AlarmTime1": "-07-01 02:44:06","GpsTime": "0001-01-01T00:00:00Z","GpsTime1": "","AlarmAddress": "","AlertInfo": "","OfflineTimeout": 0,"FileName": "file/Media/0701/862607059076223_00B7557EBA0B_0630184405.jpg"}}

设备事件

文件上传事件

消息结构

表1

{"MsgType": "HTTP_onEvent","DeviceNo": "862607059076223","Data": {"ChannelName": "通道2","EventName": "File_Upload_Success","FileName": "file/Media/0701/862607059076223_00B7557EBA0B_0630184405.jpg","MediaKey": "SecondStreamProfileToken_640_352","Message": "","SerialNumber": "00B7557EBA0B"}}

图片/视频采集事件

消息结构

表1

{"MsgType": "Media_onEvent","DeviceNo": "862607059076223","Data": {"ChannelName": "通道2","EventName": "Media_Screenshot_Success","FileName": "","MediaKey": "SecondStreamProfileToken_640_352","Message": "","SerialNumber": "00B7557EBA0B"}}

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。