mapdist("waco, texas", "houston, texas")
from <- c("houston, texas", "dallas")
to <- "waco, texas"
mapdist(from, to)
mapdist(from, to, mode = "bicycling")
mapdist(from, to, mode = "walking")
from <- c("houston", "houston", "dallas")
to <- c("waco, texas", "san antonio", "houston")
mapdist(from, to)
mapdist("the white house", "washington monument", mode = "walking")
# geographic coordinates are accepted as well
(wh <- as.numeric(geocode("the white house", source = "google")))
(wm <- as.numeric(geocode("washington monument", source = "google")))
mapdist(wh, wm, mode = "walking")
mapdist("the white house", wm, mode = "walking")
distQueryCheck()
Run the code above in your browser using DataLab