Compute Euclidean path coordinates from observed case/landmark to nearest/selected pump.
euclideanPath(origin = 1, destination = NULL, type = "case-pump",
vestry = FALSE, latlong = FALSE, case.set = "observed",
location = "nominal", weighted = TRUE, distance.unit = "meter",
time.unit = "second", walking.speed = 5, include.landmarks = TRUE)
Numeric. Vector of origin(s) (numeric ID or character name landmark/pump ).
Numeric. Vector of destination(s) (numeric or landmark/pump name).
Character. Path case to pump. FALSE is all other combinations of cases, landmarks and pumps.
Logical. TRUE
uses the 14 pumps from the map in the Vestry Report. FALSE
uses the 13 pumps from the original map.
Logical.
Character. "observed" or "expected".
Character. For cases and pumps. "nominal", "anchor" or "orthogonal".
Logical. TRUE
computes shortest path in terms of road length. FALSE
computes shortest path in terms of the number of nodes.
Character. Unit of distance: "meter" or "yard".
Character. "hour", "minute", or "second".
Numeric. Walking speed in km/hr.
Logical. Include landmarks as cases.