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) | - startUpdatingPositionWithCompletion: |
| Start updating position. Affects all SYPositioning instances. More... | |
| (void) | - stopUpdatingPositionWithCompletion: |
| Stop updating position. Affects all SYPositioning instances. More... | |
| (void) | - startPositionLoggingNmeaWithReceiverBlock:completion: |
| (void) | - stopPositionLoggingNmeaWithCompletion: |
| (nonnull SYPositionDataSource *) | - getDataSource |
| Get current provider of raw position data for the positioning manager. If you didnt set datasource, a default instance of SYDevicePositionSource is returned. More... | |
| (void) | - setDataSource:completion: |
| Set 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... | |
| (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... | |
| (void) | - getTunnelPositioningModeWithCompletion: |
| Asynchronously retrieves current tunnel position mode. More... | |
| (void) | - setTunnelPositioningMode:completion: |
| Asynchronously sets current tunnel position mode. More... | |
Class Methods | |
| (nullable SYPositioningManager *) | + shared |
| Returns the SYPositioningManager singleton instance (or nil if SygicMaps SDK is not initialized). More... | |
| ((unavailable("Use +[SYPositioningManager shared] instead.") | + __attribute__ |
Manages positioning services for the Sygic SDK.
| - (typedef void(^ SYRoadDetailsCompletionBlock) (SYMapMatchingResult result, NSArray< SYRoadDetail * > *_Nullable roads)) |
| + (nullable SYPositioningManager*) shared |
Returns the SYPositioningManager singleton instance (or nil if SygicMaps SDK is not initialized).
| - ((unavailable("Use +[SYPositioningManager shared] instead.") __attribute__ |
SYPositioningManager is singleton, use [SYPositioningManager shared] to access singleton instance.
| + ((unavailable("Use +[SYPositioningManager shared] instead.") __attribute__ |
| - (void) startUpdatingPositionWithCompletion: | (nullable SYOperationDoneCompletionBlock) | completion |
Start updating position. Affects all SYPositioning instances.
| - (void) stopUpdatingPositionWithCompletion: | (nullable SYOperationDoneCompletionBlock) | completion |
Stop updating position. Affects all SYPositioning instances.
| - (void) startPositionLoggingNmeaWithReceiverBlock: | (nonnull SYPositionLogNMEASentenceBlock) | receiverBlock | |
| completion: | (nullable SYOperationDoneCompletionBlock) | completion | |
Start position logging in NMEA format.
| receiverBlock | Callback which will receive NMEA sentences, it will be called when position is updated. |
| completion | Callback which will be called when logging is initialized and started. |
| - (void) stopPositionLoggingNmeaWithCompletion: | (nullable SYOperationDoneCompletionBlock) | completion |
Stop position logging in NMEA format.
| completion | Callback which will be called when logging is stopped. |
| - (nonnull SYPositionDataSource*) getDataSource |
Get current provider of raw position data for the positioning manager. If you didnt set datasource, a default instance of SYDevicePositionSource is returned.
| - (void) setDataSource: | (nullable SYPositionDataSource *) | source | |
| completion: | (nullable SYDataSourceCompletionBlock) | completion | |
Set 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.
| - (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.
| - (void) getTunnelPositioningModeWithCompletion: | (nonnull SYGetTunnelPositioningModeBlock) | completion |
Asynchronously retrieves current tunnel position mode.
| - (void) setTunnelPositioningMode: | (SYTunnelPositioningMode) | mode | |
| completion: | (nonnull SYSetTunnelPositioningModeBlock) | completion | |
Asynchronously sets current tunnel position mode.