Navmii SDK
2.2.0
Write yourself a navigation system in iOS
|
Inherits <NSObject>.
Instance Methods | |
(nullable instancetype) | - init |
(nullable instancetype) | - initWithDistanceFromRouteOrigin:reroutingCount:maximalRouteLength: |
(nullable instancetype) | - settingsWithDistanceFromRouteOrigin: |
(nullable instancetype) | - settingsWithReroutingCount: |
(nullable instancetype) | - settingsWithMaximalRouteLength: |
Properties | |
NSUInteger | distanceFromOriginToForgetAboutSelectedRoute |
NSUInteger | reroutingCountToForgetAboutSelectedRoute |
NSUInteger | maximalRouteLengthToIgnoreSelectedRoute |
Interface represents rerouting settings. When rerouting occurs, the rerouting engine attempts to use a route similar to the one initially sent to NMRouteNavigator. The settings allow to control the conditions when the rerouting engine stops trying to do so.
Note that there are some situations when the rerouting engine immediately stops considering the route initially sent to NMRouteNavigator. Those are:
- (nullable instancetype) init |
Initializes settings with default values.
- (nullable instancetype) initWithDistanceFromRouteOrigin: | (NSUInteger) | distanceFromRouteOriginInMeters | |
reroutingCount: | (NSUInteger) | reroutingCount | |
maximalRouteLength: | (NSUInteger) | maximalRouteLengthInMeters | |
Initializes settings with specified values.
distanceFromRouteOriginInMeters | Specifies value of the distanceFromOriginToForgetAboutSelectedRoute property. |
reroutingCount | Specifies value of the reroutingCountToForgetAboutSelectedRoute property. |
maximalRouteLengthInMeters | Specifies value of the maximalRouteLengthToIgnoreSelectedRoute property. |
- (nullable instancetype) settingsWithDistanceFromRouteOrigin: | (NSUInteger) | distanceInMeters |
Returns the copy of the current instance with new value of the distanceFromOriginToForgetAboutSelectedRoute property.
distanceInMeters | Specifies value for the distanceFromOriginToForgetAboutSelectedRoute property. |
- (nullable instancetype) settingsWithMaximalRouteLength: | (NSUInteger) | lengthInMeters |
Returns the copy of the current instance with new value of the maximalRouteLengthToIgnoreSelectedRoute property.
lengthInMeters | Specifies value for the maximalRouteLengthToIgnoreSelectedRoute property. |
- (nullable instancetype) settingsWithReroutingCount: | (NSUInteger) | count |
Returns the copy of the current instance with new value of the reroutingCountToForgetAboutSelectedRoute property.
count | Specifies value for the reroutingCountToForgetAboutSelectedRoute property. |
|
readnonatomicassign |
Returns distance in meters from route origin. After passing this distance the route initially sent to NMRouteNavigator won't be considered in rerouting. If the specified distance is non-zero, rerouting engine won't consider the route initially sent to NMRouteNavigator after distance from the route origin to the current position is higher than the specified distance.
Default value is 4000 meters.
|
readnonatomicassign |
Returns maximal route length in meters to ignore the selected route. If value is non-zero, the rerouting engine won't try to get back to the route initially sent to NMRouteNavigator if it's length is lower than the specified value.
Default value is 4000 meters.
|
readnonatomicassign |
Returns the number of reroutings to forget about the selected route. If value is non-zero, the rerouting engine stops considering the route initially sent to NMRouteNavigator as soon as the specified number of reroutings occurred.
Default value is 0.