public class AMapCarInfo
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static <any> |
CREATOR |
构造器和说明 |
---|
AMapCarInfo() |
限定符和类型 | 方法和说明 |
---|---|
int |
describeContents() |
void |
setCarNumber(java.lang.String carNumber)
设置车辆的车牌号码.
|
void |
setCarType(java.lang.String carType)
设置车辆类型
0-燃油客车,1-燃油货车,2-纯电动客车,3-纯电动货车,4-插电式混动汽车,5-插电式混动货车,11-摩托车 |
void |
setMotorcycleCC(int motorcycleCC)
设置摩托车排量(cc)
|
void |
setRestriction(boolean restriction)
设置是否躲避车辆限行。
|
void |
setVehicleAxis(java.lang.String vehicleAxis)
设置货车的轴数,mCarType = 1时候生效,取值[0-255],默认为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米
|
void |
setVehicleLoad(java.lang.String vehicleLoad)
设置货车的总重,即车重+核定载重,单位:吨,mCarType = 1时候生效,取值[0-6553.5]
|
void |
setVehicleLoadSwitch(boolean vehicleLoadSwitch)
设置货车重量是否参与算路
|
void |
setVehicleSize(java.lang.String vehicleSize)
设置货车的大小,默认为2
|
void |
setVehicleWeight(java.lang.String vehicleWeight)
设置货车的核定载重,单位:吨,mCarType = 1时候生效,取值[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) |
public void writeToParcel(Parcel dest, int flags)
public int describeContents()
public void setCarNumber(java.lang.String carNumber)
carNumber
- 车牌号码public void setRestriction(boolean restriction)
restriction
- true代表躲避车辆限行,false代表不躲避车辆限行。默认为truepublic void setCarType(java.lang.String carType)
carType
- 车辆类型,默认为0public void setVehicleHeight(java.lang.String vehicleHeight)
vehicleHeight
- 车辆高度public void setVehicleLoad(java.lang.String vehicleLoad)
vehicleLoad
- 货车总重public void setVehicleLoadSwitch(boolean vehicleLoadSwitch)
vehicleLoadSwitch
- true-重量会参与算路;false-重量不会参与算路。默认为falsepublic void setVehicleWidth(java.lang.String vehicleWidth)
vehicleWidth
- public void setVehicleLength(java.lang.String vehicleLength)
vehicleLength
- public void setVehicleSize(java.lang.String vehicleSize)
vehicleSize
- 1-微型货车 2-轻型/小型货车 3-中型货车 4-重型货车public void setVehicleAxis(java.lang.String vehicleAxis)
vehicleAxis
- public void setVehicleWeight(java.lang.String vehicleWeight)
vehicleWeight
- public void setMotorcycleCC(int motorcycleCC)
motorcycleCC
- 毫升cc数public java.lang.String toString()
toString
在类中 java.lang.Object