GPE_travel_time_dist.Rd
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" |
if (FALSE) { GPE_travel_time_dist(visits, participants, locations, key, transport_mode = "walking") }