demo/example1.R

library(gmapsdistance)

# Compute the travel distance and time between Washington DC and New York City
results = gmapsdistance(origin = "Washington+DC", 
                        destination = "New+York+City+NY", 
                        mode = "driving")
results
chongyan11/gmapsdistance documentation built on May 3, 2019, 6:43 p.m.