Loading...
Searching...
No Matches
NCRouteProgress.h
Go to the documentation of this file.
1#import "NCExport.h"
2#import "NCGlobalPoint.h"
3#import <Foundation/Foundation.h>
4
9DEFAULT_EXPORT_ATTRIBUTE
10@interface NCRouteProgress : NSObject
11
15- (nonnull instancetype)initWithPoint:(nonnull NCGlobalPoint *)point
16 sublocationId:(nullable NSNumber *)sublocationId
17 advance:(float)advance
18 remainingDistance:(float)remainingDistance
19 remainingTime:(float)remainingTime
20 legIndex:(int32_t)legIndex;
21
25+ (nonnull instancetype)routeProgressWithPoint:(nonnull NCGlobalPoint *)point
26 sublocationId:(nullable NSNumber *)sublocationId
27 advance:(float)advance
28 remainingDistance:(float)remainingDistance
29 remainingTime:(float)remainingTime
30 legIndex:(int32_t)legIndex;
31
32@property (nonatomic, readonly, nonnull) NCGlobalPoint * point;
33
34@property (nonatomic, readonly, nullable) NSNumber * sublocationId;
35
36@property (nonatomic, readonly) float advance;
37
38@property (nonatomic, readonly) float remainingDistance;
39
45@property (nonatomic, readonly) float remainingTime;
46
47@property (nonatomic, readonly) int32_t legIndex;
48
49@end