Skip to contents

Calculate network distances to nearest 'n' points.

Usage

m4ra_dists_n_pts(graph, from = NULL, to = NULL, npts = 3L)

Arguments

graph

A dodgr network returned from the weight_streetnet function using a network obtained with the osmdata osmdata_sc function.

from

Vector of OpenStreetMap ID values from which route distances are to be calculated.

to

Vector of OpenStreetMap ID values to which nearest 'npts' distances are to be calculated.

npts

Number of points to which distances are to be calculated.