title: SpatialLinesDataFrame: how to calculate the min. distance between a point and a line
body: <p>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.</p>
  
  <p>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'.</p>
  
  <p>There is a related question: <a href="https://stackoverflow.com/questions/15294343/calculating-the-distance-between-polygon-and-point-in-r">Calculating the distance between polygon and point in R</a>, but I want to find the distance between a line object and a point, not polygon/point, point/point.</p>