View source: R/GPE_travel_time_dist.R
GPE_travel_time_dist | R Documentation |
Estimate travel time and distance between origins and destinations
GPE_travel_time_dist(visits, participants, locations, key,
transport_mode = "transit")
visits |
a dataframe of "visits", events when a participant visited a location, containing "participant_id" and "location_id" columns |
participants |
a dataframe containing "lon" and "lat" columns with WGS84 (Mercator) coordinates and a "participant_id" column |
locations |
a dataframe containing "lon" and "lat" columns with WGS84 (Mercator) coordinates and a "location_id" column |
key |
an API key obtained at https://cloud.google.com/maps-platform/ |
transport_mode |
(optional) either "transit" (default), "driving", "walking", or "bicycling" |
## Not run:
GPE_travel_time_dist(visits, participants, locations, key, transport_mode = "walking")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.