public class TruckNaviOption extends NaviParaOption
NaviParaOption.NaviRoutePolicy
Constructor and Description |
---|
TruckNaviOption() |
Modifier and Type | Method and Description |
---|---|
TruckNaviOption |
endName(java.lang.String endName)
设置重点name
|
TruckNaviOption |
endPoint(LatLng endPoint)
设置终点坐标信息
|
int |
getAxleCount()
获取轴数
|
double |
getAxleWeight()
获取轴重
|
int |
getDisplacement()
获取百公里油耗
|
int |
getEmissionLimit()
获取排放标准
|
java.lang.String |
getEndName()
获取终点name信息
|
LatLng |
getEndPoint()
获取终点坐标
|
double |
getHeight()
获取车辆高度
|
boolean |
getIsTrailer()
获取是否挂车 true:是 false:否
|
double |
getLength()
获取车辆长度
|
int |
getLoadWeight()
获取核定载重
|
java.lang.String |
getNaviRoutePolicy()
获取导航路线类型
|
int |
getPlateColor()
获取车牌颜色
0:蓝色(默认) 1:黄 2:黑 3:白 4:绿
|
java.lang.String |
getPlateNumber()
获取车牌号码
|
int |
getPowerType()
获取动力类型 1-汽油; 2-柴油; 3-电动; 4-混合
|
int |
getTruckType()
获取货车类型
|
JSONArray |
getWayPoint()
获取途径点参数json
|
double |
getWeight()
获取车辆总重
|
double |
getWidth()
获取车辆宽度
|
TruckNaviOption |
setAxleCount(int axleCount)
轴数,int,范围[2, 8]
必填 默认 0 (不填会抛异常)
|
TruckNaviOption |
setAxleWeight(double axleWeight)
轴重,double, 单位吨,范围[0,100]
必填 默认是0
|
TruckNaviOption |
setDisplacement(int displacement)
百公里油耗,单位L
可选 默认 0
|
TruckNaviOption |
setEmissionLimit(int emissionLimit)
排放标准 。取值范围0-6,对应无(0)、国1-国6(1-6)标准
必填 默认 0
|
TruckNaviOption |
setHeight(double height)
车辆高度 ,double ,单位米,范围[1,10]
必填 默认是0 (不填会抛异常)
|
TruckNaviOption |
setIsTrailer(boolean isTrailer)
是否挂车 true:是 false:否
可选 默认false
|
TruckNaviOption |
setLength(double length)
车辆长度,double,单位米,范围[1,25]
必填 默认是0 (不填会抛异常)
|
TruckNaviOption |
setLoadWeight(int loadWeight)
核定载重。单位吨,范围[1,100]
必填 默认 0(不填会抛异常)
|
TruckNaviOption |
setNaviRoutePolicy(NaviParaOption.NaviRoutePolicy naviRoutePolicy)
设置导航路线策略 (默认推荐)
|
TruckNaviOption |
setPlateColor(int plateColor)
车牌颜色 0:蓝色(默认) 1:黄 2:黑 3:白 4:绿
可选 默认 0
|
TruckNaviOption |
setPlateNumber(java.lang.String plateNumber)
车牌号码,省份外的号码,如:京B69999
必填 (不填会抛异常)
|
TruckNaviOption |
setPowerType(int powerType)
动力类型 1-汽油; 2-柴油; 3-电动; 4-混合
必填 默认 0 (不填会抛异常)
|
TruckNaviOption |
setTruckType(int truckType)
货车类型 1:微型,2:轻型,3:中型,4:重型
必填 默认 0 (不填会抛异常)
|
TruckNaviOption |
setWayPoint(WayPoint wayPoint)
设置途径点参数(最多支持3个途径点)
|
TruckNaviOption |
setWeight(double weight)
车辆总重 ,double,单位吨,范围[1,100]
必填 默认是0 (不填会抛异常)
|
TruckNaviOption |
setWidth(double width)
车辆宽度,double, 单位米,范围[1,5]
必填 默认是0 (不填会抛异常)
|
endUid, getEndUid, getStartName, getStartPoint, getStartUid, startName, startPoint, startUid
public TruckNaviOption setNaviRoutePolicy(NaviParaOption.NaviRoutePolicy naviRoutePolicy)
setNaviRoutePolicy
in class NaviParaOption
naviRoutePolicy
- 路线规划策略public TruckNaviOption setWayPoint(WayPoint wayPoint)
setWayPoint
in class NaviParaOption
wayPoint
- 途径点参数public java.lang.String getNaviRoutePolicy()
getNaviRoutePolicy
in class NaviParaOption
public JSONArray getWayPoint()
getWayPoint
in class NaviParaOption
public TruckNaviOption endPoint(LatLng endPoint)
endPoint
in class NaviParaOption
endPoint
- 导航终点, 经纬度坐标public TruckNaviOption endName(java.lang.String endName)
endName
in class NaviParaOption
endName
- 导航终点名称public LatLng getEndPoint()
getEndPoint
in class NaviParaOption
public java.lang.String getEndName()
getEndName
in class NaviParaOption
public TruckNaviOption setTruckType(int truckType)
truckType
- public int getTruckType()
public TruckNaviOption setHeight(double height)
height
- 车辆高度public TruckNaviOption setWidth(double width)
width
- 车辆宽度public TruckNaviOption setWeight(double weight)
weight
- 车辆总重public TruckNaviOption setLength(double length)
length
- 车辆长度public TruckNaviOption setAxleWeight(double axleWeight)
axleWeight
- 轴重public TruckNaviOption setAxleCount(int axleCount)
axleCount
- 轴数public TruckNaviOption setIsTrailer(boolean isTrailer)
isTrailer
- 是否挂车public TruckNaviOption setPlateNumber(java.lang.String plateNumber)
plateNumber
- 车牌号码public TruckNaviOption setPlateColor(int plateColor)
plateColor
- 车牌颜色public TruckNaviOption setDisplacement(int displacement)
displacement
- 百公里油耗public TruckNaviOption setPowerType(int powerType)
powerType
- 动力类型public TruckNaviOption setEmissionLimit(int emissionLimit)
emissionLimit
- 排放标准public TruckNaviOption setLoadWeight(int loadWeight)
loadWeight
- 核定载重public double getHeight()
public double getWidth()
public double getWeight()
public double getLength()
public double getAxleWeight()
public int getAxleCount()
public boolean getIsTrailer()
public java.lang.String getPlateNumber()
public int getPlateColor()
public int getDisplacement()
public int getPowerType()
public int getEmissionLimit()
public int getLoadWeight()