public class AMapNaviCameraInfo
extends java.lang.Object
此类是在AMapNaviListener.updateCameraInfo(AMapNaviCameraInfo[])回调的摄像头信息类。
This class represents the camera information returned in the AMapNaviListener.updateCameraInfo(AMapNaviCameraInfo[]) callback.
| 构造器和说明 |
|---|
AMapNaviCameraInfo() |
AMapNaviCameraInfo(NaviCameraInfo naviCamera)
构造普通电子眼
Construct ordinary electronic eye |
AMapNaviCameraInfo(RouteCamera naviCamera)
构造路线上的电子眼
Construct electronic eye on route |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getAverageSpeed()
进入区间测速区域后的实时平均速度,注意:只有在类型为区间测速时才有值
Real-time average speed after entering the section speed measurement area. |
int |
getCameraDistance()
获取当前位置到摄像头的距离
Get distance from current position to the camera |
int |
getCameraSpeed()
获取当前摄像头的限速大小
Get speed limit size of current camera |
int |
getCameraType()
获取摄像头的类型
Get type of the camera |
int |
getDistance()
获取区间测速电子眼长度,注意:只有在类型为区间测速时才有值
Get length of section speed measurement electronic eye. |
int |
getIntervalRemainDistance()
获取进入区间测速路段后实时的区间路段剩余长度,-1表示没有信息,单位:米
Get real-time remaining length of section segment after entering the section speed measurement segment, -1 means no information, unit: meters |
int |
getReasonableSpeedInRemainDist()
获取区间测速剩余路段的合理车速,注意:只有在类型为区间测速时才有值
Get reasonable vehicle speed for remaining sections of section speed measurement. |
int[] |
getSpeed()
已过时。
|
double |
getX()
获取摄像头的经度
Get longitude of the camera |
double |
getY()
获取摄像头的纬度
Get latitude of the camera |
void |
setAverageSpeed(int averageSpeed)
设置区间测速实时速度
Set real-time speed for section speed measurement |
void |
setDistance(int distance)
设置区间测速电子眼长度
Set length of section speed measurement electronic eye |
void |
setIntervalRemainDistance(int intervalRemainDistance)
设置进入区间测速路段后实时的区间路段剩余长度,单位:米
Set real-time remaining length of section segment after entering the section speed measurement segment, unit: meters |
void |
setReasonableSpeedInRemainDist(int reasonableSpeedInRemainDist)
设置合理车速
Set reasonable vehicle speed |
void |
setSpeed(int[] speed)
已过时。
|
void |
update(NaviCameraInfo intervalCamera)
构造区间测速电子眼
Construct section speed measurement electronic eye |
public AMapNaviCameraInfo()
public AMapNaviCameraInfo(NaviCameraInfo naviCamera)
public AMapNaviCameraInfo(RouteCamera naviCamera)
public void update(NaviCameraInfo intervalCamera)
public int getAverageSpeed()
public void setAverageSpeed(int averageSpeed)
averageSpeed - public int getReasonableSpeedInRemainDist()
public void setReasonableSpeedInRemainDist(int reasonableSpeedInRemainDist)
reasonableSpeedInRemainDist - public int getDistance()
public void setDistance(int distance)
distance - public int[] getSpeed()
getCameraSpeed()代替getCameraSpeed() insteadpublic void setSpeed(int[] speed)
speed - public double getX()
public double getY()
public int getCameraDistance()
public int getCameraSpeed()
CameraType 为测速摄像头和区间测速摄像头时,返回测速摄像头限速值,单位km/h;否则-2 表示没有采集到限速数据,-1 表示该车道禁行,0 表示没有限速(或者说是非限速类型)CameraType is a speed detection camera or section speed detection camera, returns the speed limit value of the speed detection camera, unit km/h; otherwise, -2 means no speed limit data collected, -1 means the lane is prohibited, 0 means no speed limit (or non-speed limit type)public int getCameraType()
CameraTypeCameraTypepublic int getIntervalRemainDistance()
public void setIntervalRemainDistance(int intervalRemainDistance)
intervalRemainDistance -