userTrueDistanceFromStep

fun userTrueDistanceFromStep(usersRawLocation: Point, step: LegStep): Double

Calculates the distance between the users current raw android.location.Location object to the closest Point in the LegStep.

Return

double in distance meters

Since

0.2.0

Parameters

usersRawLocation

Point the raw location where the user is currently located

step

LegStep to calculate the closest point on the step to our predicted location