TencentNavKit
TNKLocation.h
Go to the documentation of this file.
1//
2// TNKLocation.h
3// TencentNavKit
4//
5// Created by xue on 2018/11/22.
6// Copyright © 2018年 Tencent. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10#import <CoreLocation/CoreLocation.h>
11
12NS_ASSUME_NONNULL_BEGIN
13
14
18@interface TNKLocation : NSObject
19
23@property (nonatomic, readonly) CLLocation *location;
24
28@property (nonatomic, readonly) NSInteger matchedIndex;
29
33@property (nonatomic, readonly, nullable) NSString *routeID;
34
38@property (nonatomic, readonly) CLLocationCoordinate2D matchedCoordinate;
39
43@property (nonatomic, readonly) CLLocationDirection matchedCourse;
44
48@property (nonatomic, readonly) double phoneDir;
49
53@property (nonatomic, readonly) BOOL mockGPS;
54
58@property (nonatomic, readonly) int remainingDistance;
59
63@property (nonatomic, readonly) int remainingTime;
64
69@property (nonatomic, readonly) int remainTrafficLightCount;
70
71@end
72
73NS_ASSUME_NONNULL_END
导航的定位信息.
Definition: TNKLocation.h:19
CLLocation * location
导航的原始定位信息.
Definition: TNKLocation.h:23
double phoneDir
手机的朝向。
Definition: TNKLocation.h:48
NSString * routeID
导航吸附信息所属的路线ID.
Definition: TNKLocation.h:33
CLLocationCoordinate2D matchedCoordinate
吸附到导航路线上的经纬度信息. 若未成功吸附到路线上会返回kCLLocationCoordinate2DInvalid.
Definition: TNKLocation.h:38
NSInteger matchedIndex
吸附到导航路线上的位置索引. 若未成功吸附到路线上会返回-1
Definition: TNKLocation.h:28
int remainTrafficLightCount
实时剩余红绿灯个数
Definition: TNKLocation.h:69
int remainingTime
剩余时间,单位:分钟
Definition: TNKLocation.h:63
CLLocationDirection matchedCourse
吸附到导航路线上的角度信息. 若未成功吸附到路线上会返回-1.0
Definition: TNKLocation.h:43
int remainingDistance
剩余距离, 单位:米
Definition: TNKLocation.h:58
BOOL mockGPS
该点是否是惯性导航模拟点
Definition: TNKLocation.h:53