Giter Site home page Giter Site logo

Comments (3)

jcoupey avatar jcoupey commented on August 22, 2024

Once the TSP is solved, the -g flag basically triggers a viaroute request to OSRM with the ordered locations. The mentioned assertion prevents the execution to go on when the json response of this viaroute query doesn't contain the required key (used to retrieve timing and distance information).

Try to track the corresponding request in osrm-routed logs and see if the 'route_summary' key is present when used in a browser or with curl.

Alternatively, you can try to spot unexpected values by checking the content of variables query and json_response appearing in https://github.com/jcoupey/vroom/blob/master/src/loaders/osrm_wrapper.h#L247-L253.

from vroom.

KieCap avatar KieCap commented on August 22, 2024

Got it...

--max-viaroute-size needs to be set when running osrm-routed.

Thanks for the help. :)

from vroom.

jcoupey avatar jcoupey commented on August 22, 2024

Oh yes, didn't spot you mentioned the --max-matching-size and not the --max-viaroute-size parameter.

Rather than just stopping with the assertion, we should display the error message from OSRM to make it clear what went wrong. This will have to wait a little since all status codes and messages are bound to change in the new server API as of OSRM v5.

from vroom.

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.