Coder Social home page Coder Social logo

Comments (6)

rCarto avatar rCarto commented on June 22, 2024

In osrm you can use the exclude arg.
osrmRoute(..., exclude = "motorway")

from osrm.

tra6sdc avatar tra6sdc commented on June 22, 2024

Thanks. I tried this

 try(osrmRoute(src = o, dst = d, overview = FALSE, exclude = "motorway"))

and I get the error message:

Error : OSRM API request failed [400]
InvalidValue
Exclude flag combination is not supported.

I am happy for the route to include a motorway just NOT match to a motorway at the start of the route. BUT if to enable a match to a non-motorway road at the start I needed to exclude motorways entirely, that's fine. But using what you have suggested no routes are found. Thanks for looking into this issue. Should I be raising it on the Project-OSRM github instead?

from osrm.

rCarto avatar rCarto commented on June 22, 2024

This problem could be solved with the OSRM nearest service, not yet implemented in the R package.
The exclude parameter is not implemented in the OSRM demo server but it should work with a local recent version of OSRM. Maybe your version is a bit outdated?

from osrm.

tra6sdc avatar tra6sdc commented on June 22, 2024

Thanks. The R package is 4.0.0 which is up to date.

I am happy to update the Windows software. The versions I am using are old, from before July 2018. Can you remind me where to obtain more recent versions? I will then try the exclude parameter. Thanks.

28/07/2018  11:07         (155,136) osrm-components.exe
28/07/2018  11:07         (947,200) osrm-contract.exe
28/07/2018  11:07         (873,472) osrm-customize.exe
28/07/2018  11:07         (506,880) osrm-datastore.exe
28/07/2018  11:07       (3,159,040) osrm-extract.exe
28/07/2018  11:07         (685,056) osrm-partition.exe
28/07/2018  11:07         2,317,824 osrm-routed.exe

from osrm.

rCarto avatar rCarto commented on June 22, 2024

I don't know how to install OSRM on windows. The best place get instructions is probably the OSRM server GitHub repo.

from osrm.

tra6sdc avatar tra6sdc commented on June 22, 2024

Thanks. I've looked at that page previously and been unable to comprehend it. I'll just stick with having this issue.

from osrm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.