gem.routesAndNavigation. RouteInstruction

new RouteInstruction()

routeInstruction class

Extends

Methods

delete()

calls emscripten object destructor

Inherited From

getAbstractGeometryImage(bitmapContainer, backgroundColor, foregroundColor)

Parameters:
NameTypeDescription
bitmapContainer*

output bitmap

backgroundColor*

background color

foregroundColor*

foreground color

getCoordinates() → {gem.core.Coordinates}

Get Coordinates

Returns:
Type: 
gem.core.Coordinates

getCountryCodeISO() → {string}

Get Country Code ISO

Returns:
Type: 
string

getFollowRoadInstruction() → {string}

Get textual description for the follow road information.

Returns:
Type: 
string

getRawPointer() → {object}

Returns emscripten object

Returns:
Type: 
object

getRealisticNextTurnImage(bitmapContainer)

Get image for the realistic turn information.

Parameters:
NameTypeDescription
bitmapContainergem.core.BitmapContainer

output bitmap. This object will be modified by this method.

getRemainingTravelTimeDistance() → {gem.core.TimeAndDistance}

Get remaining travel distance in meters and remaining traveling time in seconds.

getTimeDistanceToNextTurn() → {gem.core.TimeAndDistance}

Gets distance to the next turn in meters, time in seconds.

getTraveledTimeDistance() → {gem.core.TimeAndDistance}

Get the traveled distance in meters and the traveled time in seconds.

getTurnImageInBitmap(bitmapContainer)

Get the turn image in a bitmap

Parameters:
NameTypeDescription
bitmapContainergem.core.BitmapContainer

output bitmap

getTurnInstructionString() → {string}

Get turn instruction as text

Returns:
Type: 
string

hasFollowRoadInfo() → {boolean}

Check if follow road information is available.

Returns:
Type: 
boolean

hasSignpostInfo() → {boolean}

Check if signpost information is available.

Returns:
Type: 
boolean

hasTurnInfo() → {boolean}

Checks if turn information is available.

Returns:
Type: 
boolean

isDeleted() → {boolean}

Check if emscripten object has been deleted

Inherited From
Returns:
Type: 
boolean

toEVRouteInstruction() → {gem.routesAndNavigation.EVRouteInstruction}

Converts the current route instruction to an Electric Vehicle route instruction.

Returns:

The converted Electric Vehicle route instruction.

Type: 
gem.routesAndNavigation.EVRouteInstruction

toPTRouteInstruction() → {object}

Converts the current route instruction to a Public Transit route instruction.

Returns:

The converted Public Transit route instruction.

Type: 
object