public class TruckingParam extends RoutePlanningParam
限定符和类型 | 类和说明 |
---|---|
static class |
TruckingParam.EnergyType |
static class |
TruckingParam.GasEmissionStandard |
static class |
TruckingParam.GoodsType |
static class |
TruckingParam.PassType |
static class |
TruckingParam.PlateColor |
static class |
TruckingParam.Policy |
static class |
TruckingParam.TrailerType |
static class |
TruckingParam.TruckSize |
RoutePlanningParam.DrivingPolicy, RoutePlanningParam.TransitPolicy
构造器和说明 |
---|
TruckingParam() |
限定符和类型 | 方法和说明 |
---|---|
TruckingParam |
addWayPoint(LatLng l)
增加一个途经点,最多30个,如果多余30则不作任何操作。
|
TruckingParam |
addWayPoints(java.lang.Iterable<LatLng> ls)
增加多个途经点
|
com.tencent.lbssearch.object.RequestParams |
buildParameters()
构造参数
|
TruckingParam |
fromPOI(java.lang.String fromPOI)
起点POI ID,传入后,优先级高于from(坐标)
|
java.lang.Class<TruckingResultObject> |
getResultClass() |
java.lang.String |
getUrl() |
TruckingParam |
setAxleCount(int axleCount)
设置轴数,默认 2
|
TruckingParam |
setAxleWeight(double axleWeight)
设置轴重,单位:吨,默认 2
|
TruckingParam |
setEnergyType(TruckingParam.EnergyType energyType)
设置能源类型
|
TruckingParam |
setExtraFields(java.lang.String... extraFields)
设置扩张字段
|
TruckingParam |
setGasEmissionStandard(TruckingParam.GasEmissionStandard gasEmissionStandard)
设置尾气排放标准
|
TruckingParam |
setGoodsType(TruckingParam.GoodsType goodsType)
设置货品类型
|
TruckingParam |
setMultRoute(int multRoute)
是否返回多条路线方案(目前支持同时返回3条)
|
TruckingParam |
setNoPolyline(int noPolyline)
是否返回路线坐标点串
|
TruckingParam |
setNoStep(int noStep)
是否返回路线步骤
|
TruckingParam |
setPassType(TruckingParam.PassType passType)
设置通行证类型
|
TruckingParam |
setPlateColor(TruckingParam.PlateColor color)
设置车牌颜色
|
TruckingParam |
setPolicy(TruckingParam.Policy policy)
设置策略偏好
|
TruckingParam |
setTrailer(int isTrailer)
设置是否挂车
|
TruckingParam |
setTrailerType(TruckingParam.TrailerType trailerType)
设置拖挂类型
|
TruckingParam |
setTruckHeight(double height)
设置车辆高度,单位:米,默认 1.8
|
TruckingParam |
setTruckLength(double length)
设置车辆长度,单位:米,默认 4.2
|
TruckingParam |
setTruckLoad(double load)
设置核定载重,单位:吨,默认 2
|
TruckingParam |
setTruckNumber(java.lang.String truckNumber)
车牌号
当缺省时,算路不考虑政策性区域限行
|
TruckingParam |
setTruckSize(TruckingParam.TruckSize size)
设置车型,依据国标分类
|
TruckingParam |
setTruckWeight(double weight)
设置车辆总重,单位:吨,默认 2.5
|
TruckingParam |
setTruckWidth(double width)
设置车辆宽度,单位:米,默认 1.9
|
TruckingParam |
toPOI(java.lang.String toPOI)
终点POI ID(可通过腾讯位置服务地点搜索服务得到),当目的地为较大园区、小区时,会以引导点做为终点(如出入口等),体验更优。
|
TruckingParam |
trafficSpeed(boolean enable)
设置是否返回路线实时路况(蚯蚓线)信息
|
checkParams, from, locationToParamsString, to
public com.tencent.lbssearch.object.RequestParams buildParameters()
ParamObject
buildParameters
在接口中 ParamObject
buildParameters
在类中 RoutePlanningParam
public TruckingParam fromPOI(java.lang.String fromPOI)
fromPOI
- public TruckingParam toPOI(java.lang.String toPOI)
RoutePlanningParam
toPOI
在类中 RoutePlanningParam
public TruckingParam setTruckSize(TruckingParam.TruckSize size)
public TruckingParam setTruckLength(double length)
public TruckingParam setTruckHeight(double height)
public TruckingParam setTruckWidth(double width)
public TruckingParam setTruckWeight(double weight)
public TruckingParam setTruckLoad(double load)
public TruckingParam setAxleWeight(double axleWeight)
public TruckingParam setAxleCount(int axleCount)
public TruckingParam setTrailer(int isTrailer)
isTrailer
- 取值:0[默认]否 1是public TruckingParam addWayPoint(LatLng l)
l
- public TruckingParam addWayPoints(java.lang.Iterable<LatLng> ls)
ls
- public TruckingParam setPolicy(TruckingParam.Policy policy)
policy
- public TruckingParam setTruckNumber(java.lang.String truckNumber)
truckNumber
- public TruckingParam setPlateColor(TruckingParam.PlateColor color)
color
- public TruckingParam setTrailerType(TruckingParam.TrailerType trailerType)
trailerType
- 取值:无(默认)public TruckingParam setGoodsType(TruckingParam.GoodsType goodsType)
goodsType
- 取值:常规货品(默认)public TruckingParam setEnergyType(TruckingParam.EnergyType energyType)
energyType
- 取值:不限(默认)public TruckingParam setGasEmissionStandard(TruckingParam.GasEmissionStandard gasEmissionStandard)
gasEmissionStandard
- 取值:不限(默认)public TruckingParam setPassType(TruckingParam.PassType passType)
passType
- 取值:无需考虑通行证(默认)public TruckingParam trafficSpeed(boolean enable)
enable
- public TruckingParam setMultRoute(int multRoute)
multRoute
- 取值: 0:返回一条推荐路线(默认) 1:返回1到3条路线public TruckingParam setNoStep(int noStep)
noStep
- 取值:0[默认]返回 1不返回public TruckingParam setNoPolyline(int noPolyline)
noPolyline
- 取值:0[默认]返回 1不返回public TruckingParam setExtraFields(java.lang.String... extraFields)
extraFields
- 扩张字段public java.lang.String getUrl()
getUrl
在类中 RoutePlanningParam
public java.lang.Class<TruckingResultObject> getResultClass()
getResultClass
在类中 RoutePlanningParam