CartoType Android API 8.8-7-gb35e4dc71
for Java development on Android
Public Attributes | Static Public Attributes | List of all members
com.cartotype.Turn Class Reference

Public Attributes

int turnType
 
boolean isContinue
 
int roundaboutState
 
double turnAngle
 
int exitNumber
 
double distance
 
double time
 
String fromName
 
String fromRef
 
FeatureInfo fromRouteInfo = new FeatureInfo(FeatureType.UnknownRoute)
 
String toName
 
String toRef
 
FeatureInfo toRouteInfo = new FeatureInfo(FeatureType.UnknownRoute)
 
String instructions
 

Static Public Attributes

static final int TURN_NONE = 0
 
static final int TURN_AHEAD = 1
 
static final int TURN_BEAR_RIGHT = 2
 
static final int TURN_RIGHT = 3
 
static final int TURN_SHARP_RIGHT = 4
 
static final int TURN_AROUND = 5
 
static final int TURN_SHARP_LEFT = 6
 
static final int TURN_LEFT = 7
 
static final int TURN_BEAR_LEFT = 8
 
static final int ROUNDABOUT_STATE_NONE = 0
 
static final int ROUNDABOUT_STATE_ENTER = 1
 
static final int ROUNDABOUT_STATE_CONTINUE = 2
 
static final int ROUNDABOUT_STATE_EXIT = 3
 
static final int ROUNDABOUT_STATE__CONTINUE = 2
 

Detailed Description

Information about a turn from one route segment to another.

Member Data Documentation

◆ distance

double com.cartotype.Turn.distance

The distance to the turn in metres.

◆ exitNumber

int com.cartotype.Turn.exitNumber

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

◆ fromName

String com.cartotype.Turn.fromName

The name of the road before the turn.

◆ fromRef

String com.cartotype.Turn.fromRef

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

◆ fromRouteInfo

FeatureInfo com.cartotype.Turn.fromRouteInfo = new FeatureInfo(FeatureType.UnknownRoute)

The type of the road before the turn.

◆ instructions

String com.cartotype.Turn.instructions

Instructions for the turn, in the current locale's language.

◆ isContinue

boolean com.cartotype.Turn.isContinue

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

◆ ROUNDABOUT_STATE__CONTINUE

final int com.cartotype.Turn.ROUNDABOUT_STATE__CONTINUE = 2
static

This junction continues around a roundabout.

Deprecated:
: use ROUNDABOUT_STATE_CONTINUE.

◆ ROUNDABOUT_STATE_CONTINUE

final int com.cartotype.Turn.ROUNDABOUT_STATE_CONTINUE = 2
static

This junction continues around a roundabout.

◆ ROUNDABOUT_STATE_ENTER

final int com.cartotype.Turn.ROUNDABOUT_STATE_ENTER = 1
static

This junction enters a roundabout.

◆ ROUNDABOUT_STATE_EXIT

final int com.cartotype.Turn.ROUNDABOUT_STATE_EXIT = 3
static

This junction exits a roundabout.

◆ ROUNDABOUT_STATE_NONE

final int com.cartotype.Turn.ROUNDABOUT_STATE_NONE = 0
static

This junction does not involve a roundabout.

◆ roundaboutState

int com.cartotype.Turn.roundaboutState

The roundabout state.

◆ time

double com.cartotype.Turn.time

The estimated time to the turn in seconds.

◆ toName

String com.cartotype.Turn.toName

The name of the road after the turn.

◆ toRef

String com.cartotype.Turn.toRef

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

◆ toRouteInfo

FeatureInfo com.cartotype.Turn.toRouteInfo = new FeatureInfo(FeatureType.UnknownRoute)

The type of the road after the turn.

◆ TURN_AHEAD

final int com.cartotype.Turn.TURN_AHEAD = 1
static

A turn of less than 22.5 degrees left or right, unless this is a fork with two choices, in which case the turn will be bear right or bear left.

◆ TURN_AROUND

final int com.cartotype.Turn.TURN_AROUND = 5
static

This turn type is use for U-turns: turns back along the same road.

◆ TURN_BEAR_LEFT

final int com.cartotype.Turn.TURN_BEAR_LEFT = 8
static

A turn between 22.5 degrees and 67.5 degrees left. or a turn through a smaller angle which is the leftmost of a fork with two choices.

◆ TURN_BEAR_RIGHT

final int com.cartotype.Turn.TURN_BEAR_RIGHT = 2
static

A turn between 22.5 degrees and 67.5 degrees right or a turn through a smaller angle which is the rightmost of a fork with two choices.

◆ TURN_LEFT

final int com.cartotype.Turn.TURN_LEFT = 7
static

A turn between 67.5 degrees and 112.5 degrees left.

◆ TURN_NONE

final int com.cartotype.Turn.TURN_NONE = 0
static

No turn exists or is needed. This turn type is used at the start of a route.

◆ TURN_RIGHT

final int com.cartotype.Turn.TURN_RIGHT = 3
static

A turn between 67.5 degrees and 112.5 degrees right.

◆ TURN_SHARP_LEFT

final int com.cartotype.Turn.TURN_SHARP_LEFT = 6
static

A turn between 112.5 degrees and 180 degrees left.

◆ TURN_SHARP_RIGHT

final int com.cartotype.Turn.TURN_SHARP_RIGHT = 4
static

A turn between 112.5 degrees and 180 degrees right.

◆ turnAngle

double com.cartotype.Turn.turnAngle

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

◆ turnType

int com.cartotype.Turn.turnType

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


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