SYPositioningManager Class Reference

Manages positioning services for the Sygic SDK. More...

#import <SYPositioning.h>

Inheritance diagram for SYPositioningManager:
Collaboration diagram for SYPositioningManager:

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

SYPositionDataSourcedataSource
 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...
 

Detailed Description

Manages positioning services for the Sygic SDK.

Member Typedef Documentation

◆ SYRoadDetailsCompletionBlock

- (typedef void(^ SYRoadDetailsCompletionBlock) (SYMapMatchingResult result, NSArray< SYRoadDetail * > *_Nullable roads))

Method Documentation

◆ shared

+ (nonnull SYPositioningManager*) shared

Returns the SYPositioningManager singleton instance.

◆ __attribute__ [1/2]

- ((unavailable("Use +[SYPositioningManager shared] instead.") __attribute__

SYPositioningManager is singleton, use [SYPositioningManager shared] to access singleton instance.

◆ __attribute__ [2/2]

+ ((unavailable("Use +[SYPositioningManager shared] instead.") __attribute__

◆ matchPositions:precisions:timestamps:completion:

- (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.

Parameters
positionsArray of coordinates to be matched to the road geometry.
precisionsArray 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.
timestampsArray 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.
completionCompletion block called asynchronously when the operation is finished.

◆ projectMatchedGeometryForPositions:matchedIds:tolerance:completion:

- (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.

◆ getRoadDetailsForIds:completion:

- (void) getRoadDetailsForIds: (nonnull NSArray< SYRoadId * > *)  ids
completion: (nonnull SYRoadDetailsCompletionBlock completion 

Provides details for set of roads.

Property Documentation

◆ dataSource

- (SYPositionDataSource*) dataSource
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.

◆ logType

- (SYPositionLogging) logType
readwritenonatomicassign

Configures position update logging.


The documentation for this class was generated from the following file: