View source: R/get_nearest_station.R
get_nearest_station | R Documentation |
Get the nearest stations to the preferd station.
get_nearest_station(id, lonlat = T, dt, ...)
id |
The ID of the desired station |
lonlat |
logical. If TRUE, coordinates should be in degrees; else they should represent planar ('Euclidean') space (e.g. units of meters). See pointDistance for details. |
dt |
A data.table which contains 3 columns (i.e., ID, Lon, Lat). |
... |
Other parameters which passed to pointDistance |
A vector with station IDs sorted by distance.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.