In a specific city, is there a way to find out the amount of kilometers needed to travel between two points (e.g. 2 pairs of lat/long) by bus?
I found the following post that shows how to find out walking and driving distance:
#install
remotes::install_github("riatelab/osrm")
# https://www.rdocumentation.org/packages/osrm/versions/3.5.1/topics/osrmRoute
route1 <- osrmRoute(src = c(13.412, 52.502),
dst = c(13.454, 52.592), osrm.profile = "foot")
route2 <- osrmRoute(src = c(13.412, 52.502),
dst = c(13.454, 52.592), osrm.profile = "car")
route3 <- osrmRoute(src = c(13.412, 52.502),
dst = c(13.454, 52.592), osrm.profile = "bike")
#
route1$distance
But it does not seem like there is a "bus option" here. Is this possible in R?
Thank you!