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
rodazuero/gmapsdistance documentation built on Feb. 18, 2020, 12:40 p.m.