Manages positioning services for the Sygic SDK. More...
#import <SYPositioning.h>
Public Types | |
typedef void(^ | SYRoadDetailsCompletionBlock) (SYMapMatchingResult result, NSArray< SYRoadDetail * > *_Nullable roads) |
Instance Methods | |
((unavailable("Use +[SYPositioningManager shared] instead.") | - __attribute__ |
SYPositioningManager is singleton, use [SYPositioningManager shared] to access singleton instance. More... | |
(void) | - matchPositions:precisions:timestamps:completion: |
Map matching algorithm, tries to create continuous road sequence of roads representing provided polyline. More... | |
(void) | - projectMatchedGeometryForPositions:matchedIds:tolerance:completion: |
Matches provided geometry to road sequence. Result should contain array of SYMatchedRoad with same size as input positions. Each position is matched to one of roads from ids with tollerance. Not all SYMatchedRoadId from input may be in result array and some of them may be there multiple times with different distances. More... | |
(void) | - getRoadDetailsForIds:completion: |
Provides details for set of roads. More... | |
Class Methods | |
(nonnull SYPositioningManager *) | + shared |
Returns the SYPositioningManager singleton instance. More... | |
((unavailable("Use +[SYPositioningManager shared] instead.") | + __attribute__ |
Properties | |
SYPositionDataSource * | dataSource |
The current provider of raw position data for the positioning manager. If positioning is started with a nil dataSource, a default instance of SYDevicePositionSource is created and installed. More... | |
SYPositionLogging | logType |
Configures position update logging. More... | |
Manages positioning services for the Sygic SDK.
- (typedef void(^ SYRoadDetailsCompletionBlock) (SYMapMatchingResult result, NSArray< SYRoadDetail * > *_Nullable roads)) |
+ (nonnull SYPositioningManager*) shared |
Returns the SYPositioningManager singleton instance.
- ((unavailable("Use +[SYPositioningManager shared] instead.") __attribute__ |
SYPositioningManager is singleton, use [SYPositioningManager shared] to access singleton instance.
+ ((unavailable("Use +[SYPositioningManager shared] instead.") __attribute__ |
- (void) matchPositions: | (nonnull NSArray< SYGeoCoordinate * > *) | positions | |
precisions: | (nullable NSArray< NSNumber * > *) | precisions | |
timestamps: | (nullable NSArray< NSNumber * > *) | timestamps | |
completion: | (nonnull SYMapMatchingMatchCompletionBlock) | completion | |
Map matching algorithm, tries to create continuous road sequence of roads representing provided polyline.
positions | Array of coordinates to be matched to the road geometry. |
precisions | Array of precisions (optional), doubleValue of each element must represent the distance in meters for matching the corresponding position to the road geometry. Each element relates to the coordinate from the positions array at the same index. |
timestamps | Array of timestamps (optional), unsignedIntValue of each element must represent the time in seconds since Unix epoch for matching the corresponding position to the road geometry. Each element relates to the coordinate from the positions array at the same index. |
completion | Completion block called asynchronously when the operation is finished. |
- (void) projectMatchedGeometryForPositions: | (nonnull NSArray< SYGeoCoordinate * > *) | positions | |
matchedIds: | (nonnull NSArray< SYRoadId * > *) | ids | |
tolerance: | (SYAccuracy) | tolerance | |
completion: | (nonnull SYMapMatchingProjectMatchedGeometryCompletionBlock) | completion | |
Matches provided geometry to road sequence. Result should contain array of SYMatchedRoad with same size as input positions. Each position is matched to one of roads from ids with tollerance. Not all SYMatchedRoadId from input may be in result array and some of them may be there multiple times with different distances.
- (void) getRoadDetailsForIds: | (nonnull NSArray< SYRoadId * > *) | ids | |
completion: | (nonnull SYRoadDetailsCompletionBlock) | completion | |
Provides details for set of roads.
|
readwritenonatomicstrong |
The current provider of raw position data for the positioning manager. If positioning is started with a nil dataSource, a default instance of SYDevicePositionSource is created and installed.
|
readwritenonatomicassign |
Configures position update logging.