Coder Social home page Coder Social logo

Comments (2)

easbar avatar easbar commented on June 11, 2024

I had a look a this. There seem to be multiple things involved.

  1. When we request with vehicle=car this means the ProfileResolver is used in MapMatchingResource to find a matching profile. If there are CH preparations it tries to find a CH profile and finds profile=car, because this is the only profile for CH. If there is no CH profile it tries to find an LM preparation and finds both profile=car_no_tc and profile=car, but in this case takes profile=car_no_tc, because it favors the profile with turn costs if both are available.

  2. MapMatching does not really depend on the CH preparations. It only checks for the ch/lm.disable flags and if they are both false and there are some LM preparations it tries to find landmarks for the given profile. So if CH is disabled MapMatching uses the LM preparation for the car profile and everything is fine, but if we enable CH for car_no_tc it tries to find an LM preparation for profile=car_no_tc.

  3. In MapMatching we are missing the implementation of the cross-query feature so far which means we cannot find landmarks for profile=car_no_tc.

So the first thing we need to fix is implementing the cross-query feature. This should fix this issue. However, its still ugly that ProfileResolver considers CH profiles and MapMatching does not. The problem here is that we are injecting a global instance of ProfileResolver in MapMatchingResource, but we need a slightly different resolver for map-matching.

from map-matching.

easbar avatar easbar commented on June 11, 2024

And there is another problem: We cannot request with profile=car_no_tc either, because MapMatchingResource always uses ProfileResolver instead of skipping it when the profile parameter is used explicitly.

from map-matching.

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.