library(gmapsdistance)
results = gmapsdistance(origin = "Rawalpindi", destination = "Lahore", mode = "driving", key = "")
results
its output is
$Time
[1] 15788
$Distance
[1] 358383
$Status
[1] "OK"
requirements
- what is the unit of time and distance its is giving