powered by
See bikecitizens.net for an interactive version of the routing engine used by BikeCitizens.
route_bikecitizens( from = NULL, to = NULL, base_url = "https://map.bikecitizens.net/api/v1/locations/route.json", cccode = "gb-leeds", routing_profile = "balanced", bike_profile = "citybike", from_lat = 53.8265, from_lon = -1.576195, to_lat = 53.80025, to_lon = -1.51577 )
A numeric vector representing the start point
A numeric vector representing the end point
The base URL for the routes
The city code for the routes
What type of routing to use?
What type of bike?
Latitude of origin
Longitude of origin
Latitude of destination
Longitude of destination
# NOT RUN { if(curl::has_internet()) { route_bikecitizens() ldf <- od_coords(stplanr::od_data_lines[2, ]) r <- route_bikecitizens(ldf) plot(r) } # }
Run the code above in your browser using DataLab