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

Try the gmapsdistance package in your browser

Any scripts or data that you put into this service are public.

gmapsdistance documentation built on Nov. 17, 2017, 6:01 a.m.