public class AMapNaviCameraInfo
extends java.lang.Object
此类是在AMapNaviListener.updateCameraInfo(AMapNaviCameraInfo[])回调的摄像头信息类。
This class represents the camera information returned in the AMapNaviListener.updateCameraInfo(AMapNaviCameraInfo[]) callback.
| 限定符和类型 | 方法和说明 |
|---|---|
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 |
public int getAverageSpeed()
public int getReasonableSpeedInRemainDist()
public int getDistance()
public int[] getSpeed()
AMapNaviCameraInfo.getCameraSpeed()代替AMapNaviCameraInfo.getCameraSpeed() insteadpublic 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()