nearest_facility_dist: nearest facility + distance to a user

View source: R/RcppExports.R

nearest_facility_distR Documentation

nearest facility + distance to a user

Description

nearest facility + distance to a user

Usage

nearest_facility_dist(facility, user)

Arguments

facility

a matrix with longitude and latitude in the first two columns

user

a matrix with longitude and latitude in the first two columns

Value

matrix with 3 columns: user_id, facility_id, distance, where the user_id is the identifier for the user, the facility_id is the identifier for the facility that is closest to that user, and the distance is the distance in metres from that user to that facility.


njtierney/maxcovr documentation built on Nov. 27, 2024, 7:51 a.m.