BBASMMapRouteAdapterProtocol.h 2.12 KB
//
//  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