We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In package osrm version 3.0.0 try:
data("com") trips <- osrmTrip(loc = com[1101:1150, c(1,3,4)])
Error is on line 134-136 of file osrmTrip.R:
osrmTrip.R
df <- data.frame(start, end, duration = res$trips[nt,]$legs[[1]][,3] / 60, distance = res$trips[nt,]$legs[[1]][,4] / 1000)
The distance column in the returned seems to have changed order in the json Potential solution, replace 134-136 with
df <- data.frame(start, end, duration = res$trips[nt,]$legs[[1]][,3] / 60, distance = res$trips[nt,]$legs[[1]][,2] / 1000)
or alternatively
df <- data.frame(start, end, duration = res$trips[nt,]$legs[[1]][,"duration"] / 60, distance = res$trips[nt,]$legs[[1]][,"distance"] / 1000)
The text was updated successfully, but these errors were encountered:
thank you very much ), I'll correct this quickly
Sorry, something went wrong.
e4ee9e7
No branches or pull requests
In package osrm version 3.0.0
try:
Error is on line 134-136 of file
osrmTrip.R
:The distance column in the returned seems to have changed order in the json
Potential solution, replace 134-136 with
or alternatively
The text was updated successfully, but these errors were encountered: