Create a matrix of distances between two areas
distance_matrix_cpp(facility, user)
facility | a matrix with longitude and latitude in the first two columns |
---|---|
user | a matrix with longitude and latitude in the first two columns |
a matrix of distances in metres between each user and facility, with nrow(user) rows and nrow(facility) columns.