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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.