public static interface

DriveRoutePlanOptions.Builder

com.tencent.navix.api.plan.DriveRoutePlanOptions.Builder

Class Overview

驾车路径规划参数-构造器

Summary

Public Methods
abstract DriveRoutePlanOptions.Builder angle(float angle)
设置路径规划初始角度。设置为0-360。
abstract DriveRoutePlanOptions.Builder avoidAreaList(List<List<LatLng>> avoidAreaList)
设置避让区域数组。支持最多32个避让区域,每个区域最多可有9个顶点。需为凸多边形,顶点逆时针排列。 如果数据不合法,则避让策略不生效。 注意:如果起终点在避让区域内,则算路失败,错误码2005
abstract DriveRoutePlanOptions.Builder avoidCongestion(boolean avoidCongestion)
设置是否躲避拥堵
abstract DriveRoutePlanOptions.Builder avoidCovidArea(boolean avoidCovidArea)
设置驾车路线规划参数: 是否规避疫情区域
abstract DriveRoutePlanOptions.Builder avoidHighway(boolean avoidHighway)
设置是否避开高速公路
abstract DriveRoutePlanOptions.Builder avoidLimit(boolean avoidLimit)
设置是否避开限行
abstract DriveRoutePlanOptions.Builder avoidToll(boolean avoidToll)
设置是否避开收费站
abstract DriveRoutePlanOptions.Builder initialNaviSessionID(String initialNaviSessionID)
设置用于导航的行前乘客选路的session id。 可在webservice api的路径规划接口中获得.
abstract DriveRoutePlanOptions.Builder initialRouteID(String initialRouteID)
设置用于导航的行前乘客选路的路线id。 可在webservice api的路径规划接口中获得.
abstract DriveRoutePlanOptions.Builder isGreenCar(boolean isGreenCar)
设置驾车路线规划参数: 是否为新能源车
abstract DriveRoutePlanOptions.Builder licenseNumber(String licenseNumber)
设置车牌号
abstract DriveRoutePlanOptions.Builder multiRoute(boolean enable)
设置是否开启多路线
abstract DriveRoutePlanOptions.Builder naviScene(int naviScene)
设置接送客场景
abstract DriveRoutePlanOptions.Builder preLocations(List<NavGpsLocation> preLocations)
设置前序点
abstract DriveRoutePlanOptions.Builder preferBigRoad(boolean bigRoad)
设置驾车路线规划参数: 是否优先大路, 默认值NO.
abstract DriveRoutePlanOptions.Builder preferHighway(boolean highway)
设置驾车路线规划参数: 是否优先高速。
abstract DriveRoutePlanOptions.Builder preferShortTime(boolean shortTime)
设置驾车路线规划参数: 是否优先出时间短的路线, 默认为NO.
abstract DriveRoutePlanOptions.Builder priceOfKM(float price)
当routeTraticeType为2时,设置价格
abstract DriveRoutePlanOptions.Builder priceOfMinute(float price)
当routeTraticeType为2时,设置价格
abstract DriveRoutePlanOptions.Builder routeSearchRetryTimes(int routeSearchRetryTimes)
首次驾车路线规划失败重试次数,默认为0次,取值范围为0~5
abstract DriveRoutePlanOptions.Builder startRoadType(int roadType)
设置起点路段类型
abstract DriveRoutePlanOptions.Builder truckOptions(DriveRoutePlanOptions.TruckOptions truckOptions)
如果是货车导航,请设置货车参数。
abstract DriveRoutePlanOptions.Builder userId(String userId)
设置乘客ID,用于个性化引导点。
abstract DriveRoutePlanOptions.Builder webServiceRequestId(String requestId)
检索服务请求ID

Public Methods

public abstract DriveRoutePlanOptions.Builder angle (float angle)

设置路径规划初始角度。设置为0-360。

public abstract DriveRoutePlanOptions.Builder avoidAreaList (List<List<LatLng>> avoidAreaList)

设置避让区域数组。支持最多32个避让区域,每个区域最多可有9个顶点。需为凸多边形,顶点逆时针排列。 如果数据不合法,则避让策略不生效。 注意:如果起终点在避让区域内,则算路失败,错误码2005

public abstract DriveRoutePlanOptions.Builder avoidCongestion (boolean avoidCongestion)

设置是否躲避拥堵

public abstract DriveRoutePlanOptions.Builder avoidCovidArea (boolean avoidCovidArea)

设置驾车路线规划参数: 是否规避疫情区域

public abstract DriveRoutePlanOptions.Builder avoidHighway (boolean avoidHighway)

设置是否避开高速公路

public abstract DriveRoutePlanOptions.Builder avoidLimit (boolean avoidLimit)

设置是否避开限行

public abstract DriveRoutePlanOptions.Builder avoidToll (boolean avoidToll)

设置是否避开收费站

public abstract DriveRoutePlanOptions.Builder initialNaviSessionID (String initialNaviSessionID)

设置用于导航的行前乘客选路的session id。 可在webservice api的路径规划接口中获得.

public abstract DriveRoutePlanOptions.Builder initialRouteID (String initialRouteID)

设置用于导航的行前乘客选路的路线id。 可在webservice api的路径规划接口中获得.

public abstract DriveRoutePlanOptions.Builder isGreenCar (boolean isGreenCar)

设置驾车路线规划参数: 是否为新能源车

public abstract DriveRoutePlanOptions.Builder licenseNumber (String licenseNumber)

设置车牌号

public abstract DriveRoutePlanOptions.Builder multiRoute (boolean enable)

设置是否开启多路线

public abstract DriveRoutePlanOptions.Builder naviScene (int naviScene)

设置接送客场景

public abstract DriveRoutePlanOptions.Builder preLocations (List<NavGpsLocation> preLocations)

设置前序点

public abstract DriveRoutePlanOptions.Builder preferBigRoad (boolean bigRoad)

设置驾车路线规划参数: 是否优先大路, 默认值NO.

public abstract DriveRoutePlanOptions.Builder preferHighway (boolean highway)

设置驾车路线规划参数: 是否优先高速。

public abstract DriveRoutePlanOptions.Builder preferShortTime (boolean shortTime)

设置驾车路线规划参数: 是否优先出时间短的路线, 默认为NO.

public abstract DriveRoutePlanOptions.Builder priceOfKM (float price)

当routeTraticeType为2时,设置价格

public abstract DriveRoutePlanOptions.Builder priceOfMinute (float price)

当routeTraticeType为2时,设置价格

public abstract DriveRoutePlanOptions.Builder routeSearchRetryTimes (int routeSearchRetryTimes)

首次驾车路线规划失败重试次数,默认为0次,取值范围为0~5

public abstract DriveRoutePlanOptions.Builder startRoadType (int roadType)

设置起点路段类型

public abstract DriveRoutePlanOptions.Builder truckOptions (DriveRoutePlanOptions.TruckOptions truckOptions)

如果是货车导航,请设置货车参数。

public abstract DriveRoutePlanOptions.Builder userId (String userId)

设置乘客ID,用于个性化引导点。

public abstract DriveRoutePlanOptions.Builder webServiceRequestId (String requestId)

检索服务请求ID

Parameters
requestId 请求ID