接口名称 调用地址 请求方式 接口说明 调用示例 返回示例
通用参数说明 所有接口请求必须附带以下参数{"UserName":"用户名","PassWord":"密码","TenantNo":"租户名"}
返回参数说明{"State":"状态 操作成功0,操作失败1,无权限2,令牌错误3,IP地址限制4,系统异常-1","Message":"描述信息","Rows":"集合类型 数据行","Total":"总数据行"}
查询车辆列表 /Api/QueryVehicleList.ashx GET 请求参数说明:基本参数和VehicleNum(可选) 不传返回所有车辆
返回Rows字段说明:{"SIM":"SIM卡号/通讯号","DriverName":"司机名称","VehicleNum":"车牌号","Lat":纬度,"Lng":经度,"GPSTime":"GPS时间","Velocity":速度,"AccState":ACC开关状态,"Angle":角度,"AlarmState":是否报警,"Height":海拔,"Mile":当前里程}
http://localhost:39349/api/QueryVehicleList.ashx?UserName=yixide&Password=123456&TenantNo=研发中心 {"State":0,"Message":"Success","Total":199,"Rows":[{"SIM":"100500934324","DriverName":"未登签","VehicleNum":"111","Lat":20.002216,"Lng":110.335716,"GPSTime":"2017/11/6 10:49:21","Velocity":0.0,"AccState":false,"Angle":172.0,"AlarmState":false,"Height":0,"Mile":0.0}]}
查询历史轨迹 /Api/QueryHistoryGpsData.ashx GET 请求参数说明:基本参数和以下参数{"VehicleNumber":"车牌号","BeginTime":开始时间,"EndTime":结束时间}
返回Rows字段说明:{"PositionTime":"车辆被定位时间","ReceiveTime":"接收时间","LongitudeDegree":经度, "LatitudeDegree":纬度,"Speed":速度,"DirectionOfVehicle":角度,"VehicleStatus":"车辆状态星系", "AlertInfomation":"报警信息","Mile":"总里程","PositionDescribe":null}
http://localhost:39349/api/QueryHistoryGpsData.ashx?UserName=yixide&Password=123456&TenantNo=研发中心&VehicleNumber=粤KW1234&begintime=2017-11-06 08:25:57&endtime=2017-11-06 09:26:06 {"State":0,"Message":"查询成功","Total":22,"Rows":[{"PositionTime":"2017/11/6 8:26:15","ReceiveTime":"2017/11/6 8:23:57","LongitudeDegree":112.46437,"LatitudeDegree":23.056856,"Speed":0,"DirectionOfVehicle":0,"VehicleStatus":"ACC开,定位","AlertInfomation":"终端LCD或显示器故障","Mile":10000,"PositionDescribe":null}]}