Closed nuest closed 9 years ago
According to ?geospheree::distVincentyEllipsoid
:
Distance value in the same units as the ellipsoid (default is meters)
So get_nearest_stations
will always return meters. Why not just add this as a note to the doc?
Good point - add a note, please :-).
#' The distance is calculated using computations on an ellipsoid and the
#' returned value is in meters.
Running the example in #1 I don't know if the distance is in meters or ... degrees?
We could to two things:
?attributes
to set the unit of measurement:attributes(get_nearest_stations(...)[["distance"]])
would return a list includinguom = m
.@autermann Your opinion?