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