TencentNavKit

TNKLocationSimulator.h
Go to the documentation of this file.
1//
2// TNKLocationSimulator.h
3// TencentNavKit
4//
5// Created by mol on 2023/2/27.
6// Copyright © 2023 Tencent. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10
11NS_ASSUME_NONNULL_BEGIN
12
13 typedef NS_ENUM(NSInteger, TNKSimulateLocationsType) {
14 TNKSimulateLocationsTypeAlongCurrentRoute = 0,
15 TNKSimulateLocationsTypeAlongInitialRoute = 1,
16 TNKSimulateLocationsTypeReplay = 2,
17};
18
22@protocol TNKLocationSimulator <NSObject>
23
27@property (nonatomic, assign) BOOL enabled;
28
32@property (nonatomic, assign) TNKSimulateLocationsType simulateLocationsType;
33
39@property (nonatomic, assign) int simulationSpeed;
40
44@property (nonatomic, copy, nullable) NSString *filePath;
45
46@end
47
48NS_ASSUME_NONNULL_END
NS_ENUM
NS_ASSUME_NONNULL_BEGIN typedef NS_ENUM(NSInteger, TNKSimulateLocationsType)
Definition: TNKLocationSimulator.h:13
TNKLocationSimulator-p
模拟定位模式
Definition: TNKLocationSimulator.h:22
TNKLocationSimulator-p::simulateLocationsType
TNKSimulateLocationsType simulateLocationsType
模拟定位模式
Definition: TNKLocationSimulator.h:32
TNKLocationSimulator-p::enabled
BOOL enabled
是否启用模拟导航功能，默认为NO。需要在导航开启前设置
Definition: TNKLocationSimulator.h:27
TNKLocationSimulator-p::simulationSpeed
int simulationSpeed
模拟导航车速，单位km/h，根据路线模拟定位模式时生效，导航过程设置中依然生效 驾车导航：设置范围[5,120]，默认55; 步骑行导航：设置范围[2，120]，默认5;
Definition: TNKLocationSimulator.h:39
TNKLocationSimulator-p::filePath
NSString * filePath
轨迹回放的gps文件路径。轨迹回放模式时生效
Definition: TNKLocationSimulator.h:44