getGoogleDist: Get drive time from Distance Matrix API.

Description Usage Arguments Value

View source: R/distancematrix.R

Description

Get drive time from Distance Matrix API.

Usage

1
2
getGoogleDist(start, end, model, day, time, latlng = FALSE,
  key = "AIzaSyCp3l9A5PKPVupslJqOFmO55kg50JYd85Q")

Arguments

start

A start address or lat,lng coordinate set.

end

An end address or lat,lng coordinate set.

model

A distance matrix API traffic model.

day

The day on which to base drive time estimates.

time

The time of day on which to base drive time estimates.

latlng

Binary indicating whether start/end are lat,lng coordinates.

key

A rgeistered Google Maps Distance Matrix API key.

Value

A Google Maps drive time estimate in minutes.


davissclark/drivetime documentation built on May 28, 2019, 2:34 a.m.