com.amap.api.navi.model

## 类 AMapNaviCameraInfo

- java.lang.Object
- - com.amap.api.navi.model.AMapNaviCameraInfo

-     public class AMapNaviCameraInfo
      extends java.lang.Object

  导航过程中的摄像头信息类。
  Camera information class during navigation.

  此类是在`AMapNaviListener.updateCameraInfo(AMapNaviCameraInfo[])`回调的摄像头信息类。
  This class represents the camera information returned in the `AMapNaviListener.updateCameraInfo(AMapNaviCameraInfo[])` callback.

  从以下版本开始:
    5.0.0

- - ### 方法概要

    所有方法 实例方法 具体方法 已过时的方法
    限定符和类型 | 方法和说明
    --- | ---
    `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

    - ### 从类继承的方法 java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 方法详细资料

    - #### getAverageSpeed

          public int getAverageSpeed()

      进入区间测速区域后的实时平均速度，注意：只有在类型为区间测速时才有值
      Real-time average speed after entering the section speed measurement area. Note: Value is available only when the type is section speed measurement
      返回:
        平均速度值
        Average speed value
      从以下版本开始:
        6.2.0

    - #### getReasonableSpeedInRemainDist

          public int getReasonableSpeedInRemainDist()

      获取区间测速剩余路段的合理车速，注意：只有在类型为区间测速时才有值
      Get reasonable vehicle speed for remaining sections of section speed measurement. Note: Value is available only when the type is section speed measurement
      返回:
        区间测速值
        Section speed measurement value
      从以下版本开始:
        6.2.0

    - #### getDistance

          public int getDistance()

      获取区间测速电子眼长度，注意：只有在类型为区间测速时才有值
      Get length of section speed measurement electronic eye. Note: Value is available only when the type is section speed measurement
      返回:
        区间测速电子眼长度
        Length of section speed measurement electronic eye
      从以下版本开始:
        6.2.0

    - #### getSpeed

          public int[] getSpeed()

      已过时。
      获取区间测速电子眼的限速值 注意：只有在类型为区间测速时才有值, 已废弃，使用`AMapNaviCameraInfo.getCameraSpeed()`代替
      Get speed limit value of section speed measurement electronic eye Note: Value is available only when the type is section speed measurement. Deprecated, use `AMapNaviCameraInfo.getCameraSpeed()` instead
      返回:
        电子眼限速值，取数组第一个值即可
        Speed limit value of electronic eye, take the first value of the array
      从以下版本开始:
        6.2.0

    - #### getX

          public double getX()

      获取摄像头的经度
      Get longitude of the camera
      返回:
        经度
        Longitude
      从以下版本开始:
        5.0.0

    - #### getY

          public double getY()

      获取摄像头的纬度
      Get latitude of the camera
      返回:
        纬度
        Latitude
      从以下版本开始:
        5.0.0

    - #### getCameraDistance

          public int getCameraDistance()

      获取当前位置到摄像头的距离
      Get distance from current position to the camera
      返回:
        当前位置到摄像头的距离，单位:米
        Distance from current position to the camera, unit: meters
      从以下版本开始:
        5.0.0

    - #### getCameraSpeed

          public int getCameraSpeed()

      获取当前摄像头的限速大小
      Get speed limit size of current camera
      返回:
        限速大小。
        Speed limit size.
        当cameraType`CameraType` 为测速摄像头和区间测速摄像头时，返回测速摄像头限速值，单位km/h；否则-2 表示没有采集到限速数据，-1 表示该车道禁行，0 表示没有限速(或者说是非限速类型)
        When cameraType `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)
      从以下版本开始:
        5.0.0

    - #### getCameraType

          public int getCameraType()

      获取摄像头的类型
      Get type of the camera
      返回:
        参见 `CameraType`
        See `CameraType`
      从以下版本开始:
        5.0.0

    - #### getIntervalRemainDistance

          public int getIntervalRemainDistance()

      获取进入区间测速路段后实时的区间路段剩余长度，-1表示没有信息，单位：米
      Get real-time remaining length of section segment after entering the section speed measurement segment, -1 means no information, unit: meters
      返回: