powered by
build a quadtree index and solve the nearest neighbour problem for two SpatialPointsDataFrame.
closest_points(origins, targets)
a SpatialPointsDataFrame
for each origin point, the index of the nearest target point
# NOT RUN { #This is an internal function, no example provided # }
Run the code above in your browser using DataLab