CartoType iOS API 9.0-11-g64131709d
for development in Swift and Objective C for iOS and Mac OS
Loading...
Searching...
No Matches
CtTurn Class Reference

#include <CartoTypeRouter.h>

Inheritance diagram for CtTurn:

Properties

CtTurnType turnType
 
bool isContinue
 
CtRoundaboutState roundaboutState
 
double turnAngle
 
int exitNumber
 
double distance
 
double time
 
NSString * fromName
 
NSString * fromRef
 
CtFeatureInfofromRouteInfo
 
NSString * toName
 
NSString * toRef
 
CtFeatureInfotoRouteInfo
 
NSString * destination
 
CtPoint position
 
NSString * instructions
 
int index
 

Detailed Description

Information about a turn from one route segment to another.

Property Documentation

◆ destination

- (NSString*) destination
readwritenonatomicstrong

The destination of the road after the turn.

◆ distance

- (double) distance
readwritenonatomicassign

The distance in meters from the current position to the turn or the arrival point.

◆ exitNumber

- (int) exitNumber
readwritenonatomicassign

The junction to take, counting the current junction as 0, if this junction is part of a roundabout.

◆ fromName

- (NSString*) fromName
readwritenonatomicstrong

The name of the road before the turn.

◆ fromRef

- (NSString*) fromRef
readwritenonatomicstrong

The reference code (e.g., B4009) of the road before the turn.

◆ fromRouteInfo

- (CtFeatureInfo*) fromRouteInfo
readwritenonatomicassign

The road type of the road before the turn.

◆ index

- (int) index
readwritenonatomicassign

The index of the turn, which is unique within a route. Used to avoid duplication when issuing voice instructions.

◆ instructions

- (NSString*) instructions
readwritenonatomicstrong

Instructions for the turn in the language of the current locale.

◆ isContinue

- (bool) isContinue
readwritenonatomicassign

True if this turn is a continuation of the current road and no notification is needed.

◆ position

- (CtPoint) position
readwritenonatomicassign

The position of the turn in map coordinates.

◆ roundaboutState

- (CtRoundaboutState) roundaboutState
readwritenonatomicassign

The roundabout state.

◆ time

- (double) time
readwritenonatomicassign

The estimated time in seconds from the current position to the turn or the arrival point.

◆ toName

- (NSString*) toName
readwritenonatomicstrong

The name of the road after the turn.

◆ toRef

- (NSString*) toRef
readwritenonatomicstrong

The reference code (e.g., B4009) of the road after the turn.

◆ toRouteInfo

- (CtFeatureInfo*) toRouteInfo
readwritenonatomicassign

The road type of the road after the turn.

◆ turnAngle

- (double) turnAngle
readwritenonatomicassign

The turn angle: 0 = straight ahead; negative = left, positive = right.

◆ turnType

- (CtTurnType) turnType
readwritenonatomicassign

The turn type: ahead, left, right, etc.


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