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