BaiduMap_IOSSDK_v7.1.0_Docs  7.1.0
函数
BMKDrivingRouteSearchType.h 文件参考
#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>

浏览源代码.

函数

NS_ASSUME_NONNULL_BEGIN typedef NS_ENUM (NSInteger, BMKDrivingRouteSearchTrafficStatus)
 路况状态 更多...
 
typedef NS_ENUM (NSInteger, BMKDrivingRouteSearchRoadType)
 道路类型 更多...
 
typedef NS_ENUM (NSInteger, BMKDrivingRouteSearchTactics)
 
typedef NS_ENUM (NSInteger, BMKDrivingRouteSearchAlternatives)
 是否返回备选路线 更多...
 
typedef NS_ENUM (NSInteger, BMKDrivingRouteSearchCarType)
 车辆类型 更多...
 
typedef NS_ENUM (NSInteger, BMKDrivingRouteSearchOriginBindStrategy)
 起点绑路策略 更多...
 
typedef NS_ENUM (NSInteger, BMKDrivingRouteSearchDestBindStrategy)
 终点绑路策略 更多...
 
typedef NS_ENUM (NSInteger, BMKDrivingRouteSearchOriginRoadType)
 起点道路类型 更多...
 

函数说明

◆ NS_ENUM() [1/8]

typedef NS_ENUM ( NSInteger  ,
BMKDrivingRouteSearchAlternatives   
)

是否返回备选路线

返回一条推荐路线

返回1-3条路线供选择

◆ NS_ENUM() [2/8]

typedef NS_ENUM ( NSInteger  ,
BMKDrivingRouteSearchCarType   
)

车辆类型

普通汽车

纯电动汽车

◆ NS_ENUM() [3/8]

typedef NS_ENUM ( NSInteger  ,
BMKDrivingRouteSearchDestBindStrategy   
)

终点绑路策略

终点绑路不剔除封闭道路

终点绑路剔除封闭道路

◆ NS_ENUM() [4/8]

typedef NS_ENUM ( NSInteger  ,
BMKDrivingRouteSearchOriginBindStrategy   
)

起点绑路策略

起点绑路不剔除封闭道路

起点绑路剔除封闭道路

◆ NS_ENUM() [5/8]

typedef NS_ENUM ( NSInteger  ,
BMKDrivingRouteSearchOriginRoadType   
)

起点道路类型

普通道路(默认。绑路策略不参考此入参)

高架上

高架下

主路

辅路

◆ NS_ENUM() [6/8]

typedef NS_ENUM ( NSInteger  ,
BMKDrivingRouteSearchRoadType   
)

道路类型

高速路

城市高速路

国道

省道

县道

乡镇村道

其他道路

九级路

航线(轮渡)

行人道路

◆ NS_ENUM() [7/8]

typedef NS_ENUM ( NSInteger  ,
BMKDrivingRouteSearchTactics   
)

驾车路线检索策略(对应API的tactics参数) 参考:https://lbsyun.baidu.com/faq/api?title=webapi/webservice-direction/dirve

默认策略

距离最短(只返回一条路线,不考虑限行和路况,距离最短且稳定,用于估价场景)

不走高速

高速优先

躲避拥堵

少收费

躲避拥堵 & 高速优先

躲避拥堵 & 不走高速

躲避拥堵 & 少收费

躲避拥堵 & 不走高速 & 少收费

不走高速 & 少收费

距离优先(考虑限行和路况,距离相对短且不一定稳定)

时间优先

◆ NS_ENUM() [8/8]

NS_ASSUME_NONNULL_BEGIN typedef NS_ENUM ( NSInteger  ,
BMKDrivingRouteSearchTrafficStatus   
)

路况状态

无路况

畅通

缓行

拥堵

非常拥堵