I have an nx2 matrix of latitude and longitude values that represents the route of a car. I also have a latitude/longitude for a point near that route. I want to find the index into the matrix that is closest to the point near the route.
Any suggestions?
NOTE: I used latitude and longitude to better explain the problem. The values aren't really lat/long.
Best Answer