高德地图SDK(导航) V11.2.0501

Loading...
Searching...
No Matches
MATraceManager.h
Go to the documentation of this file.
1//
2// MATraceManager.h
3// MAMapKit
4//
5// Created by shaobin on 16/9/1.
6// Copyright © 2016年 Amap. All rights reserved.
7//
8
9
10
11#import "MAConfig.h"
12
13#if MA_INCLUDE_TRACE_CORRECT
14
15#import <Foundation/Foundation.h>
16#import <AMapFoundationKit/AMapFoundationKit.h>
17#import "MATraceLocation.h"
18
19@class MATraceManager;
20
23 typedef void(^MAProcessingCallback)(int index, NSArray<MATracePoint *> *points);
24
27 typedef void(^MAFinishCallback)(NSArray<MATracePoint *> *points, double distance);
28
31 typedef void(^MAFailedCallback)(int errorCode, NSString *errorDesc);
32
35 typedef void(^MATraceLocationCallback)(NSArray<CLLocation *> *locations, NSArray<MATracePoint *> *tracePoints, double distance, NSError *error);
36
41@protocol MATraceDelegate <NSObject>
42
43@required
44
59- (void)traceManager:(MATraceManager *)manager
60 didTrace:(NSArray<CLLocation *> *)locations
61 correct:(NSArray<MATracePoint *> *)tracePoints
62 distance:(double)distance
63 withError:(NSError *)error;
64
65@optional
73- (void)mapViewRequireLocationAuth:(CLLocationManager *)locationManager;
74
75@end
76
79@interface MATraceManager : NSObject
80
85+ (instancetype)sharedInstance;
86
103- (NSOperation *)queryProcessedTraceWith:(NSArray<MATraceLocation *>*)locations
104 type:(AMapCoordinateType)type
105 processingCallback:(MAProcessingCallback)processingCallback
106 finishCallback:(MAFinishCallback)finishCallback
107 failedCallback:(MAFailedCallback)failedCallback;
108
113@property (nonatomic, weak) id<MATraceDelegate> delegate;
114
119- (void)start;
120
125- (void)stop;
126
127@end
128
129#endif
MAConfig.h
MATraceLocation.h
© 2017 高德信息技术有限公司 版权所有，保留所有权利。