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
from Intersection
is the intersection which the way is part of and from which we want the direction to be calculated
device Heading
is the heading relative to which the direction is calculated