demo/example2.R

library(gmapsdistance)

# Compute the travel distance and time between the city of  Marathon, Greece and
# Athens, Greece. This example shows that the function is able to handle
# LAT-LONG coordinates and a Google Maps API Key

results = gmapsdistance(origin = "38.1621328+24.0029257",
                        destination = "37.9908372+23.7383394",
                        mode = "walking")
results$Time
results$Distance
results$Status
chongyan11/gmapsdistance documentation built on May 3, 2019, 6:43 p.m.