graphhopper / graphhopper

Open source routing engine for OpenStreetMap. Use it as Java library or standalone web server.

Home Page:https://www.graphhopper.com/open-source/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Routing wrong if change edge encoder access at caculate weight edge

NguyenSen opened this issue · comments

Describe the bug
I tried adjusting the access encoder at runtime but there was a problem with the results
To Reproduce

Steps to reproduce the behavior. For examples:

  1. build graph use landmark
  2. change access edge in at caculate weighting edge for only access one way fordward (or backward)
  3. routing use querygraph and landmark then will bug because routing access wrong edge direction

I fixed it by:
update edge at orther thread call edge.set(encoder.access,fase)
I hope it can be adjusted at edge weight calculation

commented

I don't understand your description. Do you have some code or a unit test that reproduces the issue? If you want to use landmarks you need to rebuild the landmarks after you make changes to the graph.

or even better: use a custom model