Path is just a straight line defined by coordinates of the beginning and end of it.
My coordinates are simply longitude and latitude of three points:
- start of the path
- end of the path
- my point (for which I want to check if it's near a given path)
Given that my paths are in the mountains I think the best would be to get a distance in the idealized 3D space.
I expect my point to be up to 25-50 meters away from the path.