com.amap.api.navi.model

## 类 AMapCarInfo

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

-     public class AMapCarInfo
      extends java.lang.Object

  车辆信息类
  Vehicle information class
  从以下版本开始:
    5.0.0

- - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `static <any>` | `CREATOR`

  - ### 构造器概要

    构造器
    构造器和说明
    `AMapCarInfo()`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `int` | `describeContents()`
    `void` | `setCarNumber(java.lang.String carNumber)` 设置车辆的车牌号码 Set the vehicle's license plate number.
    `void` | `setCarType(java.lang.String carType)` 设置车辆类型 Set vehicle type.
    `void` | `setMotorcycleCC(int motorcycleCC)` 设置摩托车排量（cc） Set motorcycle displacement (cc)
    `void` | `setRestriction(boolean restriction)` 设置是否躲避车辆限行 Set whether to avoid vehicle restricted driving.
    `void` | `setVehicleAxis(java.lang.String vehicleAxis)` 设置货车的轴数，mCarType = 1时候生效，取值[0-255]，默认为2 Set the number of truck axles, effective when mCarType = 1, value range [0-255], default is 2
    `void` | `setVehicleHeight(java.lang.String vehicleHeight)` 设置货车的高度，单位：米，mCarType = 1时候生效，取值[0-25.5] 如:1.8，1.5等等。
    `void` | `setVehicleLength(java.lang.String vehicleLength)` 设置货车的最大长度，单位：米，mCarType = 1时候生效，取值[0-25] 如:1.8，1.5等等，默认6米 Set the maximum length of the truck, unit: meter, effective when mCarType = 1, value range [0-25] e.g.: 1.8, 1.5, etc., default is 6 meters
    `void` | `setVehicleLoad(java.lang.String vehicleLoad)` 设置货车的总重，即车重+核定载重，单位：吨，mCarType = 1时候生效，取值[0-6553.5] Set the total weight of the truck, i.e., vehicle weight + approved load, unit: ton, effective when mCarType = 1, value range [0-6553.5]
    `void` | `setVehicleLoadSwitch(boolean vehicleLoadSwitch)` 设置货车重量是否参与算路 Set whether the truck weight participates in route calculation
    `void` | `setVehicleSize(java.lang.String vehicleSize)` 设置货车的大小，默认为2 Set the truck size, default is 2
    `void` | `setVehicleWeight(java.lang.String vehicleWeight)` 设置货车的核定载重，单位：吨，mCarType = 1时候生效，取值[0-6553.5] Set the approved load of the truck, unit: ton, effective when mCarType = 1, value range [0-6553.5]
    `void` | `setVehicleWidth(java.lang.String vehicleWidth)` 设置货车的最大宽度，单位：米，mCarType = 1时候生效，取值[0-25.5] 如:1.8，1.5等等。
    `java.lang.String` | `toString()`
    `void` | `writeToParcel(Parcel dest, int flags)`

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

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

- - ### 字段详细资料

    - #### CREATOR

          public static final <any> CREATOR

  - ### 构造器详细资料

    - #### AMapCarInfo

          public AMapCarInfo()

  - ### 方法详细资料

    - #### writeToParcel

          public void writeToParcel(Parcel dest,
                                    int flags)

    - #### describeContents

          public int describeContents()

    - #### setCarNumber

          public void setCarNumber(java.lang.String carNumber)

      设置车辆的车牌号码
      Set the vehicle's license plate number.

      如:京DFZ239,京ABZ239
      For example: Jing DFZ239, Jing ABZ239

      参数:
        `carNumber` - 车牌号码
        License plate number
      从以下版本开始:
        5.0.0

    - #### setRestriction

          public void setRestriction(boolean restriction)

      设置是否躲避车辆限行
      Set whether to avoid vehicle restricted driving.
      参数:
        `restriction` - true代表躲避车辆限行，false代表不躲避车辆限行。默认为true
        true means to avoid restricted driving, false means not to avoid restricted driving. Default is true
      从以下版本开始:
        5.0.0

    - #### setCarType

          public void setCarType(java.lang.String carType)

      设置车辆类型
      Set vehicle type.

      0-燃油客车，1-燃油货车，2-纯电动客车，3-纯电动货车，4-插电式混动汽车，5-插电式混动货车，11-摩托车
      0-Fuel passenger car, 1-Fuel truck, 2-Pure electric passenger car, 3-Pure electric truck, 4-Plug-in hybrid car, 5-Plug-in hybrid truck, 11-Motorcycle

      参数:
        `carType` - 车辆类型，默认为0
        Vehicle type, default is 0
      从以下版本开始:
        5.0.0

    - #### setVehicleHeight

          public void setVehicleHeight(java.lang.String vehicleHeight)

      设置货车的高度，单位：米，mCarType = 1时候生效，取值[0-25.5] 如:1.8，1.5等等。默认为1.6米
      Set the truck height, unit: meter, effective when mCarType = 1, value range [0-25.5] e.g.: 1.8, 1.5, etc. Default is 1.6 meters
      参数:
        `vehicleHeight` - 车辆高度
        Vehicle height
      从以下版本开始:
        5.0.0

    - #### setVehicleLoad

          public void setVehicleLoad(java.lang.String vehicleLoad)

      设置货车的总重，即车重+核定载重，单位：吨，mCarType = 1时候生效，取值[0-6553.5]
      Set the total weight of the truck, i.e., vehicle weight + approved load, unit: ton, effective when mCarType = 1, value range [0-6553.5]
      参数:
        `vehicleLoad` - 货车总重
        Truck gross weight
      从以下版本开始:
        5.0.0

    - #### setVehicleLoadSwitch

          public void setVehicleLoadSwitch(boolean vehicleLoadSwitch)

      设置货车重量是否参与算路
      Set whether the truck weight participates in route calculation
      参数:
        `vehicleLoadSwitch` - true-重量会参与算路；false-重量不会参与算路。默认为false
        true - Weight will participate in route calculation; false - Weight will not participate in route calculation. Default is false
      从以下版本开始:
        5.0.0

    - #### setVehicleWidth

          public void setVehicleWidth(java.lang.String vehicleWidth)

      设置货车的最大宽度，单位：米，mCarType = 1时候生效，取值[0-25.5] 如:1.8，1.5等等。默认2.5米
      Set the maximum width of the truck, unit: meter, effective when mCarType = 1, value range [0-25.5] e.g.: 1.8, 1.5, etc. Default is 2.5 meters
      参数:
        `vehicleWidth` -
      从以下版本开始:
        6.0.0

    - #### setVehicleLength

          public void setVehicleLength(java.lang.String vehicleLength)

      设置货车的最大长度，单位：米，mCarType = 1时候生效，取值[0-25] 如:1.8，1.5等等，默认6米
      Set the maximum length of the truck, unit: meter, effective when mCarType = 1, value range [0-25] e.g.: 1.8, 1.5, etc., default is 6 meters
      参数:
        `vehicleLength` -
      从以下版本开始:
        6.0.0

    - #### setVehicleSize

          public void setVehicleSize(java.lang.String vehicleSize)

      设置货车的大小，默认为2
      Set the truck size, default is 2
      参数:
        `vehicleSize` - 1-微型货车 2-轻型/小型货车 3-中型货车 4-重型货车
        1-Mini truck 2-Light/Small truck 3-Medium truck 4-Heavy truck
      从以下版本开始:
        6.0.0

    - #### setVehicleAxis

          public void setVehicleAxis(java.lang.String vehicleAxis)

      设置货车的轴数，mCarType = 1时候生效，取值[0-255]，默认为2
      Set the number of truck axles, effective when mCarType = 1, value range [0-255], default is 2
      参数:
        `vehicleAxis` -
      从以下版本开始:
        6.0.0

    - #### setVehicleWeight

          public void setVehicleWeight(java.lang.String vehicleWeight)

      设置货车的核定载重，单位：吨，mCarType = 1时候生效，取值[0-6553.5]
      Set the approved load of the truck, unit: ton, effective when mCarType = 1, value range [0-6553.5]
      参数:
        `vehicleWeight` -
      从以下版本开始:
        6.0.0

    - #### setMotorcycleCC

          public void setMotorcycleCC(int motorcycleCC)

      设置摩托车排量（cc）
      Set motorcycle displacement (cc)
      参数:
        `motorcycleCC` - 毫升cc数
        Mill cc number

    - #### toString

          public java.lang.String toString()

      覆盖:
        `toString` 在类中 `java.lang.Object`