The data of interest: a point vector and a line vector. Both shapefiles, with the line vector acting as the road/motorway. All of the points are along the road so close by.
I want to calculate the distance from point to point but the points are not necessarily in order in terms of their spatial representation.
What I mean by this is that point 64 is one the right side of the road, while point 65 on the left side of the road (I have attributes for that, road, side). E.g. id 65 might not be the next point after 64 so as in a straight line.
So far, I have tried to use distance matrix but that doesn't take into account the motorway direction (line vector).
Any ideas what to do next?