Comments (13)
This is not possible in osrm
yet. OSRM server allow to pass several points in the route service.
from osrm.
Thanks @rCarto.
I have two questions, and I would appreciate if you can get me answers to the best of your knowledge.
Is it possible to plot road routes which are on osrm using leaflet or mapview?
How do I extend the number of co-ordinates to be routed over 100 points on osrm
from osrm.
- A simple example to plot routes with
mapview
:
library(osrm)
# Travel path between points between points - output a SpatialLinesDataFrame
route <- osrmRoute(src = c("A", 13.43853, 52.47728),
dst = c("B", 13.32247, 52.48882),
sp = TRUE, overview = "full")
library(mapview)
mapview(route)
Displaying the underlying OSRM road network is not possible. You can have a look at the osmdata
package.
- Getting routes with via points implies modifying the code of the
osrmRoute()
function. I'll have a look into that feature as soon as possible.
from osrm.
@rCarto I had plotted the routes of some locations. The maximum number of locations allowed for routing using the OSRM is 100 coordinate points.
Kindly let me know if you get some findings on expanding this restriction.
Thanks
from osrm.
@rCarto I had plotted the routes of some locations. The maximum number of locations allowed for routing using the OSRM is 100 coordinate points.
Kindly let me know if you get some findings on expanding this restriction.
Thanks
from osrm.
I don't know how the R studio module works. If it's making requests to the OSRM demo server at
https://router.project-osrm.org/
, then you'll need to learn how to install and build OSRM separately, then runosrm-routed
with the option I posted above.
_Originally posted by @danpat in Project-OSRM/osrm-backend#5421 (comment)
@rCarto What do you think of this?
I think there's a way here. Do you think you can make this happen?
from osrm.
The osrm
package use an OSRM
server. The default server has limitations. You can run your own instance of OSRM
server (via docker) with the described options to get rid of the limitations and make osrm
package use your server.
from osrm.
That’s why I reached out to you @rCarto.
How can I get this done using R
from osrm.
As stated in the documentation, to change the OSRM server, change the osrm.server option:
options(osrm.server = "http://address.of.the.server/")
from osrm.
Thanks @rCarto I got osrm to work using the local host. I can now use the osrmTable
for more than 100 coordinate points but I have concerns about osrmTrip
because I still get errors of The OSRM server returned an error: Error: TooBig Too many trip coordinates
when I try to use in for analysis greater than 100 coordinates.
I need help please.
from osrm.
Hmm, there may be an other option to set on the server side. I would search on the OSRM engine documentation.
from osrm.
I have set it already. Thanks
For those who would like to get solution from my experience.
Here's how I got it done.
osrm-routed --max-trip-size X map.xml.osrm
where X
is the size you'd like to use.
from osrm.
version 3.3.2 should address the original question
from osrm.
Related Issues (20)
- no contributing guidelines
- Typo `osrmTrip` example
- osrmRoute argument order HOT 1
- Define 'isochrones' HOT 1
- Difference between `osrmRoute` and `osrmTrip`
- Distance between multiple pairs of points? HOT 1
- 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
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.