localize_to_time_zone {activatr}R Documentation

Uses Google Maps Time Zone APIs to localize the time zone.


This returns a mutated Activatr DF with the time column updated to reflect the correct time zone, using the Google Maps Time Zone APIs.





A Activatr DF: a tibble from parse_gpx or parse_tcx.


Note that to avoid overuse of the API, this does an "approximation", in that it finds the correct time zone for the first point in the data frame, and assumes all points in that data frame use that time zone. Runs between time zones (or runs that cross daylight savings time shifts) will hence be recorded using a consistent, but not always pointwise correct, timezone.

Note that you must have previously called ggmap::register_google to register an API key before calling this.


That same Activatr DF, but with the time column updated to be in the local time zone rather than UTC.

[Package activatr version 0.1.0 Index]