I have a MapPolyline
drawn on a MapControl
using anchor points from a GPX file. How can I detect when my position is off of the Polyline? I tried measuring the distance between the anchor points, and if it's off by 20 meters I raise a off course error. The problem with this is on a straight line, the anchor points are really far apart from one another and whilst I am still on the PolyLine, the off course error gets raised.
Take a look at this:
As you can see I am WAY off course. How to detect this?
Google's JavaScript API for Maps has a method called isLocationOnEdge() for exactly this purpose. Is there something like that for UWP?