For a navigation app, i need to detect when the user deviated from a given driving path(represented as a list of coordinates), so what i want to do is whenever i get a new location update for the user, ill check if this location is in the path.
is that too complicated?
For a navigation app, i need to detect when the user deviated from a
Share
For a similar problem I create a path with CGPath and then test if a point is in the path. By controlling the path width you can the amount of deviation rather easily.
Here is example code, the point to test cones from a touch event: