direction

fun direction(fromIntersection: Intersection, deviceHeading: Double): Direction

direction returns the integer direction (0-7) indicating which direction the way is relative to the device heading.

Return

the Direction indicating which direction the way is relative to the device heading

Parameters

fromIntersection

is the intersection which the way is part of and from which we want the direction to be calculated

deviceHeading

is the heading relative to which the direction is calculated