The worker the K-nearest points for a set of points on a network.
network_knn_worker(
points,
lines,
k,
direction = NULL,
use_dest = FALSE,
verbose = verbose,
digits = digits,
tol = tol
)
A list with two matrices, one with the index of the neighbours and one with the distances.
A feature collection of points, for each point, its k nearest neighbours will be found on the network.
A feature collection of lines representing the network
An integer indicating the number of neighbours to find..
Indicates a field providing information about authorized travelling direction on lines. if NULL, then all lines can be used in both directions. Must be the name of a column otherwise. The values of the column must be "FT" (From - To), "TF" (To - From) or "Both".
A boolean indicating if the origins and separations are separated (TRUE), FALSE if only origins are used.
A Boolean indicating if the function should print its progress
The number of digits to retain in the spatial coordinates ( simplification used to reduce risk of topological error)
A float indicating the spatial tolerance when points are added as vertices to lines.
#no example provided, this is an internal function
Run the code above in your browser using DataLab