I have a SpatialLinesDataFrame with streets, and I have a list of GPS coordinates. I need to do to display the 10 closest street names for each individual GPS coordinate.
Is there a function / package in R that will calculate the distance between a line and a point for a SpatialLinesDataFrame? I do not see anything that could help in the "sp".
There is a related question: Calculating the distance between a polygon and a point in R , but I want to find the distance between the line object and the point, not the polygon / point, point / point.
source share