Comments (3)
Can you provide a reproducible example leading to this error + the output of sessionInfo()
please?
from osrm.
Data is attached.
replication_PH.csv.zip
The following should produce the blank error:
df <- read.csv([data))
trip <- osrmTrip(df[c(81:306),])
The following should produce the "unable to parse" error:
df <- read.csv(data)
trip <- osrmTrip(df[c(1:80),])
Output from session info:
`sessionInfo()
R version 3.3.1 (2016-06-21)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.13.3 (unknown)
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] stringr_1.2.0 osrm_3.1.0 rgdal_1.1-10 sp_1.2-7 dplyr_0.7.4 plyr_1.8.4
loaded via a namespace (and not attached):
[1] Rcpp_0.12.14 lattice_0.20-35 assertthat_0.2.0 bitops_1.0-6 grid_3.3.1 R6_2.2.2 jsonlite_1.5 magrittr_1.5 stringi_1.1.5 rlang_0.1.2 bindrcpp_0.2 tools_3.3.1 glue_1.1.1 RCurl_1.95-4.10
[15] pkgconfig_2.0.1 rgeos_0.3-26 bindr_0.1 tibble_1.3.4`
Many thanks.
from osrm.
Sorry for the late reply.
The "blank error" is due to the fact that the public OSRM API does not allow trips with more than 100 locations. I've just added a more informative message. To use more than 100 locations you could use your own instance of OSRM and set the --max-trip-size option to a higher value.
The "unable to parse" error was due to a bug in the package. The bug is corrected and the current dev version should work (use devtools::install_github("rCarto/osrm"
)
from osrm.
Related Issues (20)
- How can I remove alternate routes when using osrm package in leaflet(r)? HOT 1
- Improve error handling osrmIsochrone(): out of bounds
- Improve error handling `osrmIsochrone()`: character vector of location HOT 1
- Improve error handling `osrmIsochrone()`: handle empty isochrones
- Improve documentation `osrmIsochrone()`: `breaks` argument
- Define "isometric" and "isodistance"
- Speed parameter HOT 3
- Stop osrm "connecting" to the network via certain types of roads HOT 6
- Problem with input data and osrmTrip() HOT 3
- curl::curl_fetch_memory(utils::URLencode(url) => connection was reset HOT 4
- osrmIsochrone(): 'loc' is too far from the OSRM network but loc is not too far... HOT 9
- Error in `osrmTrip()` when location coordinates are close to each other and/or not on roads HOT 2
- pairwise distance matrix from OSRM? HOT 2
- Using custom driving profiles HOT 2
- Problem with self-hosted server connection HOT 11
- Curl Header Overflow for Large Distance Matrices HOT 4
- fix pkg level documentation
- Duration of trip in osrmRoute and time of the day/traffic HOT 1
- Error using `osrmTable` with local server: long vectors not supported yet HOT 1
- Is snaping coordinates to the street network possible when mapping isochrones? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from osrm.