BBASMMapRouteAdapterProtocol.h
2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
//
// BBASMMapRouteAdapterProtocol.h
// SWAN
//
// Created by baidu on 2018/9/10.
// Copyright © 2018年 baidu. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <CoreLocation/CLLocation.h>
#import "BBASMWalkNaviBridgeAdapterProtocol.h"
#import "BBASMAdapterBaseImplement.h"
typedef NS_ENUM(NSUInteger, BBASMMapWalkNaviPlanRouteErrorCode) {
BBASMMapWalkNaviPlanRoutesuccess = 1000,//算路成功
BBASMMapWalkNaviPlanRouteError = 1004,//算路失败
BBASMMapWalkNaviPlanRouteNavLess = 1005,//距离太近
BBASMMapWalkNaviPlanRouteNavMore = 1006 //距离太远
};
@protocol BBASMMapAdapterProtocol;
@class BBASchemeDispatcher;
@protocol BBASMMapRouteAdapterProtocol <NSObject>
- (void)showRouteWithStartCoordinate:(CLLocationCoordinate2D)start
endCoordinate:(CLLocationCoordinate2D)end
mapController:(id<BBASMMapAdapterProtocol>)mapController;
/// 获取当前位置
- (void)getCurrentLocation:(void (^)(CLLocationCoordinate2D startCoordinate))completion;
/// 步行导航
- (void)openWalkNavigation:(id<BBASMWalkNaviBridgeAdapterProtocol>)bridge
callBack:(void (^)(BBASMMapWalkNaviPlanRouteErrorCode errorCode))callBack;
/// 获取导航所需的信息
- (id<BBASMWalkNaviBridgeAdapterProtocol>)getWalkNaviBridge:(CLLocationCoordinate2D)startCoord
endCoordinate:(CLLocationCoordinate2D)endCoord
guidKey:(NSString *)guidKey
guidIcon:(NSString *)guidIcon;
/*
* @brief 获取是否屏蔽高德地图导航,在调用地图导航端能力时,宿主可以自由选择屏蔽高德地图导航入口
*
* @return 默认NO:屏蔽显示高德地图导航入口,YES:显示高德地图导航入口
*/
+ (BOOL)isOpenGaoDeMap;
/*
* @brief 获取是否屏蔽苹果地图导航,在调用地图导航端能力时,宿主可以自由选择屏蔽苹果地图导航入口
*
* @return 默认NO:屏蔽显示苹果地图导航入口,YES:显示苹果地图导航入口
*/
+ (BOOL)isOpenAppleMap;
@end