tz_lookup_coords | R Documentation |
There are two methods - "fast"
, and "accurate"
. The "fast"
version can
look up many thousands of points very quickly, however when a point is near
a time zone boundary and not near a populated centre, it may return the
incorrect time zone. If accuracy is more important than speed, use
method = "accurate"
.
tz_lookup_coords(lat, lon, method = "fast", warn = TRUE)
lat |
numeric vector of latitudes |
lon |
numeric vector of longitudes the same length as |
method |
method by which to do the lookup. Either |
warn |
By default, if |
character vector the same length as x and y specifying the time zone of the points.
tz_lookup_coords(42, -123)
tz_lookup_coords(lat = c(48.9, 38.5, 63.1, -25), lon = c(-123.5, -110.2, -95.0, 130))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.