BaiduMap_IOSSDK_v7.1.0_Docs 7.1.0

BMKDrivingRouteSearchType.h
浏览该文件的文档.
1 //
2 // BMKDrivingRouteSearchType.h
3 // SearchComponent
4 //
5 // Created by zhangbaojin on 2026/1/8.
6 // Copyright © 2026 Baidu. All rights reserved.
7 //
8 // 驾车路线检索类型定义
9 // 包含驾车服务相关的所有枚举和类型定义
10
11 #import <Foundation/Foundation.h>
12 #import <CoreLocation/CoreLocation.h>
13
14 NS_ASSUME_NONNULL_BEGIN
15
16 #pragma mark - 路况状态
17
19 typedef NS_ENUM(NSInteger, BMKDrivingRouteSearchTrafficStatus) {
20 BMK_DRIVING_ROUTE_SEARCH_TRAFFIC_NONE = 0,
21 BMK_DRIVING_ROUTE_SEARCH_TRAFFIC_SMOOTH = 1,
22 BMK_DRIVING_ROUTE_SEARCH_TRAFFIC_SLOW = 2,
23 BMK_DRIVING_ROUTE_SEARCH_TRAFFIC_CONGESTED = 3,
24 BMK_DRIVING_ROUTE_SEARCH_TRAFFIC_SEVERELY_CONGESTED = 4
25 };
26
27 #pragma mark - 道路类型
28
30 typedef NS_ENUM(NSInteger, BMKDrivingRouteSearchRoadType) {
31 BMK_DRIVING_ROUTE_SEARCH_ROAD_TYPE_HIGHWAY = 0,
32 BMK_DRIVING_ROUTE_SEARCH_ROAD_TYPE_URBAN_HIGHWAY = 1,
33 BMK_DRIVING_ROUTE_SEARCH_ROAD_TYPE_NATIONAL = 2,
34 BMK_DRIVING_ROUTE_SEARCH_ROAD_TYPE_PROVINCIAL = 3,
35 BMK_DRIVING_ROUTE_SEARCH_ROAD_TYPE_COUNTY = 4,
36 BMK_DRIVING_ROUTE_SEARCH_ROAD_TYPE_TOWNSHIP = 5,
37 BMK_DRIVING_ROUTE_SEARCH_ROAD_TYPE_OTHER = 6,
38 BMK_DRIVING_ROUTE_SEARCH_ROAD_TYPE_LEVEL_NINE = 7,
39 BMK_DRIVING_ROUTE_SEARCH_ROAD_TYPE_FERRY = 8,
40 BMK_DRIVING_ROUTE_SEARCH_ROAD_TYPE_PEDESTRIAN = 9
41 };
42
43 #pragma mark - 驾车路线专用类型
44
47 typedef NS_ENUM(NSInteger, BMKDrivingRouteSearchTactics) {
48 BMK_DRIVING_ROUTE_SEARCH_TACTICS_DEFAULT = 0,
49 BMK_DRIVING_ROUTE_SEARCH_TACTICS_DISTANCE_SHORTEST = 2,
50 BMK_DRIVING_ROUTE_SEARCH_TACTICS_NO_HIGHWAY = 3,
51 BMK_DRIVING_ROUTE_SEARCH_TACTICS_HIGHWAY_FIRST = 4,
52 BMK_DRIVING_ROUTE_SEARCH_TACTICS_AVOID_CONGESTION = 5,
53 BMK_DRIVING_ROUTE_SEARCH_TACTICS_LESS_TOLL = 6,
54 BMK_DRIVING_ROUTE_SEARCH_TACTICS_AVOID_CONGESTION_HIGHWAY = 7,
55 BMK_DRIVING_ROUTE_SEARCH_TACTICS_AVOID_CONGESTION_NO_HIGHWAY = 8,
56 BMK_DRIVING_ROUTE_SEARCH_TACTICS_AVOID_CONGESTION_LESS_TOLL = 9,
57 BMK_DRIVING_ROUTE_SEARCH_TACTICS_AVOID_CONGESTION_NO_HIGHWAY_LESS_TOLL = 10,
58 BMK_DRIVING_ROUTE_SEARCH_TACTICS_NO_HIGHWAY_LESS_TOLL = 11,
59 BMK_DRIVING_ROUTE_SEARCH_TACTICS_DISTANCE_PRIORITY = 12,
60 BMK_DRIVING_ROUTE_SEARCH_TACTICS_TIME_PRIORITY = 13
61 };
62
64 typedef NS_ENUM(NSInteger, BMKDrivingRouteSearchAlternatives) {
65 BMK_DRIVING_ROUTE_SEARCH_ALTERNATIVES_SINGLE = 0,
66 BMK_DRIVING_ROUTE_SEARCH_ALTERNATIVES_MULTIPLE = 1
67 };
68
70 typedef NS_ENUM(NSInteger, BMKDrivingRouteSearchCarType) {
71 BMK_DRIVING_ROUTE_SEARCH_CAR_TYPE_NORMAL = 0,
72 BMK_DRIVING_ROUTE_SEARCH_CAR_TYPE_ELECTRIC = 1
73 };
74
76 typedef NS_ENUM(NSInteger, BMKDrivingRouteSearchOriginBindStrategy) {
77 BMK_DRIVING_ROUTE_SEARCH_ORIGIN_BIND_KEEP_CLOSED = 0,
78 BMK_DRIVING_ROUTE_SEARCH_ORIGIN_BIND_REMOVE_CLOSED = 1
79 };
80
82 typedef NS_ENUM(NSInteger, BMKDrivingRouteSearchDestBindStrategy) {
83 BMK_DRIVING_ROUTE_SEARCH_DEST_BIND_KEEP_CLOSED = 0,
84 BMK_DRIVING_ROUTE_SEARCH_DEST_BIND_REMOVE_CLOSED = 1
85 };
86
88 typedef NS_ENUM(NSInteger, BMKDrivingRouteSearchOriginRoadType) {
89 BMK_DRIVING_ROUTE_SEARCH_ORIGIN_ROAD_TYPE_NORMAL = 0,
90 BMK_DRIVING_ROUTE_SEARCH_ORIGIN_ROAD_TYPE_OVERHEAD = 1,
91 BMK_DRIVING_ROUTE_SEARCH_ORIGIN_ROAD_TYPE_UNDERGROUND = 2,
92 BMK_DRIVING_ROUTE_SEARCH_ORIGIN_ROAD_TYPE_MAIN_ROAD = 3,
93 BMK_DRIVING_ROUTE_SEARCH_ORIGIN_ROAD_TYPE_SIDE_ROAD = 4
94 };
95
96
97 NS_ASSUME_NONNULL_END
NS_ENUM
NS_ASSUME_NONNULL_BEGIN typedef NS_ENUM(NSInteger, BMKDrivingRouteSearchTrafficStatus)
路况状态
Definition: BMKDrivingRouteSearchType.h:19