\hypertarget{_b_m_k_driving_route_search_type_8h}{}\doxysection{Baidu\+Map\+A\+P\+I\+\_\+\+Search.\+framework/\+Headers/\+B\+M\+K\+Driving\+Route\+Search\+Type.h 文件参考}
\label{_b_m_k_driving_route_search_type_8h}\index{BaiduMapAPI\_Search.framework/Headers/BMKDrivingRouteSearchType.h@{BaiduMapAPI\_Search.framework/Headers/BMKDrivingRouteSearchType.h}}
{\ttfamily \#import $<$Foundation/\+Foundation.\+h$>$}\newline
{\ttfamily \#import $<$Core\+Location/\+Core\+Location.\+h$>$}\newline
\doxysubsection*{函数}
\begin{DoxyCompactItemize}
\item 
N\+S\+\_\+\+A\+S\+S\+U\+M\+E\+\_\+\+N\+O\+N\+N\+U\+L\+L\+\_\+\+B\+E\+G\+IN typedef \mbox{\hyperlink{_b_m_k_driving_route_search_type_8h_a886cfedca1fc0f9ebf12510ccf04b7ef}{N\+S\+\_\+\+E\+N\+UM}} (N\+S\+Integer, B\+M\+K\+Driving\+Route\+Search\+Traffic\+Status)
\begin{DoxyCompactList}\small\item\em 路况状态 \end{DoxyCompactList}\item 
typedef \mbox{\hyperlink{_b_m_k_driving_route_search_type_8h_a2b17353fec3df145e58f82987a47d7b8}{N\+S\+\_\+\+E\+N\+UM}} (N\+S\+Integer, B\+M\+K\+Driving\+Route\+Search\+Road\+Type)
\begin{DoxyCompactList}\small\item\em 道路类型 \end{DoxyCompactList}\item 
typedef \mbox{\hyperlink{_b_m_k_driving_route_search_type_8h_a37e937699ca1d03635b61e1cf9297a62}{N\+S\+\_\+\+E\+N\+UM}} (N\+S\+Integer, B\+M\+K\+Driving\+Route\+Search\+Tactics)
\item 
typedef \mbox{\hyperlink{_b_m_k_driving_route_search_type_8h_a9491ecb5fe05f9ae88510b01eff6d5e7}{N\+S\+\_\+\+E\+N\+UM}} (N\+S\+Integer, B\+M\+K\+Driving\+Route\+Search\+Alternatives)
\begin{DoxyCompactList}\small\item\em 是否返回备选路线 \end{DoxyCompactList}\item 
typedef \mbox{\hyperlink{_b_m_k_driving_route_search_type_8h_a6ddda5647c2fde45c9d6700567e37b26}{N\+S\+\_\+\+E\+N\+UM}} (N\+S\+Integer, B\+M\+K\+Driving\+Route\+Search\+Car\+Type)
\begin{DoxyCompactList}\small\item\em 车辆类型 \end{DoxyCompactList}\item 
typedef \mbox{\hyperlink{_b_m_k_driving_route_search_type_8h_a208b58ce18631fe4db3ec5b9463c37fa}{N\+S\+\_\+\+E\+N\+UM}} (N\+S\+Integer, B\+M\+K\+Driving\+Route\+Search\+Origin\+Bind\+Strategy)
\begin{DoxyCompactList}\small\item\em 起点绑路策略 \end{DoxyCompactList}\item 
typedef \mbox{\hyperlink{_b_m_k_driving_route_search_type_8h_aaf4fd130cef9f0a9368815867f4d5a3b}{N\+S\+\_\+\+E\+N\+UM}} (N\+S\+Integer, B\+M\+K\+Driving\+Route\+Search\+Dest\+Bind\+Strategy)
\begin{DoxyCompactList}\small\item\em 终点绑路策略 \end{DoxyCompactList}\item 
typedef \mbox{\hyperlink{_b_m_k_driving_route_search_type_8h_a57dfe757d068fa0ff1b39f0c9760c894}{N\+S\+\_\+\+E\+N\+UM}} (N\+S\+Integer, B\+M\+K\+Driving\+Route\+Search\+Origin\+Road\+Type)
\begin{DoxyCompactList}\small\item\em 起点道路类型 \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{函数说明}
\mbox{\Hypertarget{_b_m_k_driving_route_search_type_8h_a9491ecb5fe05f9ae88510b01eff6d5e7}\label{_b_m_k_driving_route_search_type_8h_a9491ecb5fe05f9ae88510b01eff6d5e7}} 
\index{BMKDrivingRouteSearchType.h@{BMKDrivingRouteSearchType.h}!NS\_ENUM@{NS\_ENUM}}
\index{NS\_ENUM@{NS\_ENUM}!BMKDrivingRouteSearchType.h@{BMKDrivingRouteSearchType.h}}
\doxysubsubsection{\texorpdfstring{NS\_ENUM()}{NS\_ENUM()}\hspace{0.1cm}{\footnotesize\ttfamily [1/8]}}
{\footnotesize\ttfamily typedef N\+S\+\_\+\+E\+N\+UM (\begin{DoxyParamCaption}\item[{N\+S\+Integer}]{,  }\item[{B\+M\+K\+Driving\+Route\+Search\+Alternatives}]{ }\end{DoxyParamCaption})}



是否返回备选路线 

返回一条推荐路线

返回1-\/3条路线供选择\mbox{\Hypertarget{_b_m_k_driving_route_search_type_8h_a6ddda5647c2fde45c9d6700567e37b26}\label{_b_m_k_driving_route_search_type_8h_a6ddda5647c2fde45c9d6700567e37b26}} 
\index{BMKDrivingRouteSearchType.h@{BMKDrivingRouteSearchType.h}!NS\_ENUM@{NS\_ENUM}}
\index{NS\_ENUM@{NS\_ENUM}!BMKDrivingRouteSearchType.h@{BMKDrivingRouteSearchType.h}}
\doxysubsubsection{\texorpdfstring{NS\_ENUM()}{NS\_ENUM()}\hspace{0.1cm}{\footnotesize\ttfamily [2/8]}}
{\footnotesize\ttfamily typedef N\+S\+\_\+\+E\+N\+UM (\begin{DoxyParamCaption}\item[{N\+S\+Integer}]{,  }\item[{B\+M\+K\+Driving\+Route\+Search\+Car\+Type}]{ }\end{DoxyParamCaption})}



车辆类型 

普通汽车

纯电动汽车\mbox{\Hypertarget{_b_m_k_driving_route_search_type_8h_aaf4fd130cef9f0a9368815867f4d5a3b}\label{_b_m_k_driving_route_search_type_8h_aaf4fd130cef9f0a9368815867f4d5a3b}} 
\index{BMKDrivingRouteSearchType.h@{BMKDrivingRouteSearchType.h}!NS\_ENUM@{NS\_ENUM}}
\index{NS\_ENUM@{NS\_ENUM}!BMKDrivingRouteSearchType.h@{BMKDrivingRouteSearchType.h}}
\doxysubsubsection{\texorpdfstring{NS\_ENUM()}{NS\_ENUM()}\hspace{0.1cm}{\footnotesize\ttfamily [3/8]}}
{\footnotesize\ttfamily typedef N\+S\+\_\+\+E\+N\+UM (\begin{DoxyParamCaption}\item[{N\+S\+Integer}]{,  }\item[{B\+M\+K\+Driving\+Route\+Search\+Dest\+Bind\+Strategy}]{ }\end{DoxyParamCaption})}



终点绑路策略 

终点绑路不剔除封闭道路

终点绑路剔除封闭道路\mbox{\Hypertarget{_b_m_k_driving_route_search_type_8h_a208b58ce18631fe4db3ec5b9463c37fa}\label{_b_m_k_driving_route_search_type_8h_a208b58ce18631fe4db3ec5b9463c37fa}} 
\index{BMKDrivingRouteSearchType.h@{BMKDrivingRouteSearchType.h}!NS\_ENUM@{NS\_ENUM}}
\index{NS\_ENUM@{NS\_ENUM}!BMKDrivingRouteSearchType.h@{BMKDrivingRouteSearchType.h}}
\doxysubsubsection{\texorpdfstring{NS\_ENUM()}{NS\_ENUM()}\hspace{0.1cm}{\footnotesize\ttfamily [4/8]}}
{\footnotesize\ttfamily typedef N\+S\+\_\+\+E\+N\+UM (\begin{DoxyParamCaption}\item[{N\+S\+Integer}]{,  }\item[{B\+M\+K\+Driving\+Route\+Search\+Origin\+Bind\+Strategy}]{ }\end{DoxyParamCaption})}



起点绑路策略 

起点绑路不剔除封闭道路

起点绑路剔除封闭道路\mbox{\Hypertarget{_b_m_k_driving_route_search_type_8h_a57dfe757d068fa0ff1b39f0c9760c894}\label{_b_m_k_driving_route_search_type_8h_a57dfe757d068fa0ff1b39f0c9760c894}} 
\index{BMKDrivingRouteSearchType.h@{BMKDrivingRouteSearchType.h}!NS\_ENUM@{NS\_ENUM}}
\index{NS\_ENUM@{NS\_ENUM}!BMKDrivingRouteSearchType.h@{BMKDrivingRouteSearchType.h}}
\doxysubsubsection{\texorpdfstring{NS\_ENUM()}{NS\_ENUM()}\hspace{0.1cm}{\footnotesize\ttfamily [5/8]}}
{\footnotesize\ttfamily typedef N\+S\+\_\+\+E\+N\+UM (\begin{DoxyParamCaption}\item[{N\+S\+Integer}]{,  }\item[{B\+M\+K\+Driving\+Route\+Search\+Origin\+Road\+Type}]{ }\end{DoxyParamCaption})}



起点道路类型 

普通道路（默认。绑路策略不参考此入参）

高架上

高架下

主路

辅路\mbox{\Hypertarget{_b_m_k_driving_route_search_type_8h_a2b17353fec3df145e58f82987a47d7b8}\label{_b_m_k_driving_route_search_type_8h_a2b17353fec3df145e58f82987a47d7b8}} 
\index{BMKDrivingRouteSearchType.h@{BMKDrivingRouteSearchType.h}!NS\_ENUM@{NS\_ENUM}}
\index{NS\_ENUM@{NS\_ENUM}!BMKDrivingRouteSearchType.h@{BMKDrivingRouteSearchType.h}}
\doxysubsubsection{\texorpdfstring{NS\_ENUM()}{NS\_ENUM()}\hspace{0.1cm}{\footnotesize\ttfamily [6/8]}}
{\footnotesize\ttfamily typedef N\+S\+\_\+\+E\+N\+UM (\begin{DoxyParamCaption}\item[{N\+S\+Integer}]{,  }\item[{B\+M\+K\+Driving\+Route\+Search\+Road\+Type}]{ }\end{DoxyParamCaption})}



道路类型 

高速路

城市高速路

国道

省道

县道

乡镇村道

其他道路

九级路

航线(轮渡)

行人道路\mbox{\Hypertarget{_b_m_k_driving_route_search_type_8h_a37e937699ca1d03635b61e1cf9297a62}\label{_b_m_k_driving_route_search_type_8h_a37e937699ca1d03635b61e1cf9297a62}} 
\index{BMKDrivingRouteSearchType.h@{BMKDrivingRouteSearchType.h}!NS\_ENUM@{NS\_ENUM}}
\index{NS\_ENUM@{NS\_ENUM}!BMKDrivingRouteSearchType.h@{BMKDrivingRouteSearchType.h}}
\doxysubsubsection{\texorpdfstring{NS\_ENUM()}{NS\_ENUM()}\hspace{0.1cm}{\footnotesize\ttfamily [7/8]}}
{\footnotesize\ttfamily typedef N\+S\+\_\+\+E\+N\+UM (\begin{DoxyParamCaption}\item[{N\+S\+Integer}]{,  }\item[{B\+M\+K\+Driving\+Route\+Search\+Tactics}]{ }\end{DoxyParamCaption})}

驾车路线检索策略（对应\+A\+P\+I的tactics参数） 参考：https\+://lbsyun.baidu.\+com/faq/api?title=webapi/webservice-\/direction/dirve 默认策略

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

不走高速

高速优先

躲避拥堵

少收费

躲避拥堵 \& 高速优先

躲避拥堵 \& 不走高速

躲避拥堵 \& 少收费

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

不走高速 \& 少收费

距离优先（考虑限行和路况，距离相对短且不一定稳定）

时间优先\mbox{\Hypertarget{_b_m_k_driving_route_search_type_8h_a886cfedca1fc0f9ebf12510ccf04b7ef}\label{_b_m_k_driving_route_search_type_8h_a886cfedca1fc0f9ebf12510ccf04b7ef}} 
\index{BMKDrivingRouteSearchType.h@{BMKDrivingRouteSearchType.h}!NS\_ENUM@{NS\_ENUM}}
\index{NS\_ENUM@{NS\_ENUM}!BMKDrivingRouteSearchType.h@{BMKDrivingRouteSearchType.h}}
\doxysubsubsection{\texorpdfstring{NS\_ENUM()}{NS\_ENUM()}\hspace{0.1cm}{\footnotesize\ttfamily [8/8]}}
{\footnotesize\ttfamily N\+S\+\_\+\+A\+S\+S\+U\+M\+E\+\_\+\+N\+O\+N\+N\+U\+L\+L\+\_\+\+B\+E\+G\+IN typedef N\+S\+\_\+\+E\+N\+UM (\begin{DoxyParamCaption}\item[{N\+S\+Integer}]{,  }\item[{B\+M\+K\+Driving\+Route\+Search\+Traffic\+Status}]{ }\end{DoxyParamCaption})}



路况状态 

无路况

畅通

缓行

拥堵

非常拥堵