Topic: OnlineMapsUtils.NearestPointStrict, trying to get distance from route
Hey Alex,
I am trying to find the users distance from the route, so if the user gets a certain distance from the route (makes a wrong turn), i can trigger a re-calculation of the route from the users current GPS location. In this post (http://forum.infinity-code.com/viewtopic.php?id=743) you mentioned using OnlineMapsUtils.NearestPointStrict, however i could not find it in the API docs. could you explain how to use it? or if there is a better way?
I am already using distancebetweenpoints to display the next step instruction when the user is within 150 feet of the next point.
Also, OnlineMapsGoogleDirectionsResult.Step.distance returns a TextValue<int>, Does this mean I can just assign the returned value to an integer variable or is some conversion needed? I looked at the distance and duration example that uses this but i wasn't sure.
Thanks for your help!