fix bug of liveUrl limit
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
package com.mogo.realtime.entity;
|
||||
|
||||
public
|
||||
/**
|
||||
/*
|
||||
* adas 识别物体参数
|
||||
*/
|
||||
class ADASRecognizedResult {
|
||||
public class ADASRecognizedResult {
|
||||
|
||||
/**
|
||||
* 识别物体类型
|
||||
@@ -78,4 +77,29 @@ class ADASRecognizedResult {
|
||||
* 1:高精定位
|
||||
*/
|
||||
public int dataAccuracy;
|
||||
|
||||
/**
|
||||
* 道路ID
|
||||
*/
|
||||
private String roadId;
|
||||
|
||||
/**
|
||||
* 车道ID-2D路段
|
||||
*/
|
||||
private String laneId;
|
||||
|
||||
/**
|
||||
* 车道号:中心线编号为0,中心线右侧编号为负数,3车道通行Road的车道编号,0,-1,-2,-3
|
||||
*/
|
||||
private int laneNum;
|
||||
|
||||
/**
|
||||
* 限速
|
||||
*/
|
||||
private double rateLimiting;
|
||||
|
||||
/**
|
||||
* 车道宽度
|
||||
*/
|
||||
private double roadWidth;
|
||||
}
|
||||
|
||||
@@ -73,6 +73,11 @@ public class CloudLocationInfo implements Parcelable {
|
||||
*/
|
||||
private double rateLimiting;
|
||||
|
||||
/**
|
||||
* 车道宽度
|
||||
*/
|
||||
private double roadWidth;
|
||||
|
||||
public CloudLocationInfo() {
|
||||
}
|
||||
|
||||
@@ -89,6 +94,7 @@ public class CloudLocationInfo implements Parcelable {
|
||||
this.laneId = info.laneId;
|
||||
this.laneNum = info.laneNum;
|
||||
this.rateLimiting = info.rateLimiting;
|
||||
this.roadWidth = info.roadWidth;
|
||||
}
|
||||
|
||||
protected CloudLocationInfo(Parcel in) {
|
||||
@@ -104,6 +110,7 @@ public class CloudLocationInfo implements Parcelable {
|
||||
laneId = in.readString();
|
||||
laneNum = in.readInt();
|
||||
rateLimiting = in.readDouble();
|
||||
roadWidth = in.readDouble();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -120,6 +127,7 @@ public class CloudLocationInfo implements Parcelable {
|
||||
dest.writeString(laneId);
|
||||
dest.writeInt(laneNum);
|
||||
dest.writeDouble(rateLimiting);
|
||||
dest.writeDouble(roadWidth);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -235,6 +243,14 @@ public class CloudLocationInfo implements Parcelable {
|
||||
this.rateLimiting = rateLimiting;
|
||||
}
|
||||
|
||||
public double getRoadWidth() {
|
||||
return roadWidth;
|
||||
}
|
||||
|
||||
public void setRoadWidth(double roadWidth) {
|
||||
this.roadWidth = roadWidth;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "CloudLocationInfo{" +
|
||||
@@ -250,6 +266,7 @@ public class CloudLocationInfo implements Parcelable {
|
||||
", laneId='" + laneId + '\'' +
|
||||
", laneNum=" + laneNum +
|
||||
", rateLimiting=" + rateLimiting +
|
||||
", roadWidth=" + roadWidth +
|
||||
'}';
|
||||
}
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ public class TrafficLiveCurrentManager
|
||||
this.trafficLiveCallBack = callBack;
|
||||
requestLiveManager.requestFrontVehicleLive(lat, lon, bearing, new IRequestLiveListener() {
|
||||
@Override
|
||||
public void onSuccess(String liveSn, String liveUrl, double lat, double lon) {
|
||||
public void onSuccess(String liveSn, double lat, double lon) {
|
||||
onVehicleLiveSuccess(liveSn, surfaceView);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user