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

Loading...
Searching...
No Matches
AMapNaviOptimalRouteParam.h
Go to the documentation of this file.
1//
2// AMapNaviOptimalRouteParam.h
3// AMapNaviKit
4//
5// Created by caowei on 2024/9/30.
6// Copyright © 2024 Amap. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10
11NS_ASSUME_NONNULL_BEGIN
12
16 typedef NS_ENUM(NSInteger, AMapNaviOptimalRouteSortStrategy)
17{
18 AMapNaviOptimalRouteSortStrategyBySimilarity = 1,
19 AMapNaviOptimalRouteSortStrategyByWeight = 2,
20};
21
22
23
24@interface AMapNaviOptimalRouteParam : NSObject
25
28@property(nonatomic, assign) CGFloat distanceToNextTurn;
29
32@property(nonatomic, assign) CGFloat distanceToCongestion;
33
36@property(nonatomic, assign) NSInteger congestionTime;
37
39@property(nonatomic, assign) NSInteger timeFrequency;
40
41
48@property(nonatomic, assign) AMapNaviOptimalRouteSortStrategy sortStrategy;
49
51@property(nonatomic, assign) CGFloat similityThreshold;
52
54@property(nonatomic, assign) CGFloat timeWeight;
56@property(nonatomic, assign) CGFloat distanceWeight;
58@property(nonatomic, assign) CGFloat tollWeight;
59
60
61
62@end
63
64NS_ASSUME_NONNULL_END
AMapNaviOptimalRouteSortStrategy
AMapNaviOptimalRouteSortStrategy
Definition AMapNaviOptimalRouteParam.h:17
AMapNaviOptimalRouteSortStrategyByWeight
@ AMapNaviOptimalRouteSortStrategyByWeight
权重（时间、费用、距离）系数排序
Definition AMapNaviOptimalRouteParam.h:19
AMapNaviOptimalRouteSortStrategyBySimilarity
@ AMapNaviOptimalRouteSortStrategyBySimilarity
路线相似度排序
Definition AMapNaviOptimalRouteParam.h:18
AMapNaviOptimalRouteParam
Definition AMapNaviOptimalRouteParam.h:25
AMapNaviOptimalRouteParam::distanceWeight
CGFloat distanceWeight
距离系数权重 默认值0.3 ;有效值[0,1]
Definition AMapNaviOptimalRouteParam.h:56
AMapNaviOptimalRouteParam::congestionTime
NSInteger congestionTime
Definition AMapNaviOptimalRouteParam.h:36
AMapNaviOptimalRouteParam::distanceToCongestion
CGFloat distanceToCongestion
Definition AMapNaviOptimalRouteParam.h:32
AMapNaviOptimalRouteParam::similityThreshold
CGFloat similityThreshold
相似度设定的阈值，默认值0.5 ; 有效 (0, 1]
Definition AMapNaviOptimalRouteParam.h:51
AMapNaviOptimalRouteParam::timeWeight
CGFloat timeWeight
时间系数权重 默认值0.5 ; 有效值[0,1]
Definition AMapNaviOptimalRouteParam.h:54
AMapNaviOptimalRouteParam::sortStrategy
AMapNaviOptimalRouteSortStrategy sortStrategy
Definition AMapNaviOptimalRouteParam.h:48
AMapNaviOptimalRouteParam::timeFrequency
NSInteger timeFrequency
时间间隔内只允许触发一次更优路线算路: 默认为10分钟；有效值 [10, 120]
Definition AMapNaviOptimalRouteParam.h:39
AMapNaviOptimalRouteParam::tollWeight
CGFloat tollWeight
费用系数权重 默认值0.2 ;有效值[0,1]
Definition AMapNaviOptimalRouteParam.h:58
AMapNaviOptimalRouteParam::distanceToNextTurn
CGFloat distanceToNextTurn
Definition AMapNaviOptimalRouteParam.h:28
© 2017 高德信息技术有限公司 版权所有，保留所有权利。