Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

forward_priority is zero on a motorway #30

Open
pietervdvn opened this issue Jul 1, 2022 · 3 comments
Open

forward_priority is zero on a motorway #30

pietervdvn opened this issue Jul 1, 2022 · 3 comments

Comments

@pietervdvn
Copy link
Contributor

When the lua-profile returns '120' as 'forward_priority', it becomes zero in the debug output.

I did put in a 'debug'-statement for a testcase.

When the profile is called with

highway = motorway
oneway = both
_direction = against
access = yes
speed = 120

the resulting object is:

forward_speed = 120
backward_speed = 120
forward = 0.008333333333333333
backward = 0.008333333333333333
canstop = true

Other tags and their results in this document

However, the route mysteriously fails. When trying a very synthetic testcase, it won't take the motorway but will make the detour for car.fast:

image
(The motorway is the straight line, the detour are residentials)

When dumping the routerdb to geojson, the following data is obtained.
testcase-motorway.osmcar.fast.geojson.txt

Note that _forward:factor is 0 for the motorway, but not for the residential area

@pietervdvn
Copy link
Contributor Author

Testfiles can be found in the routing profiles repo

@pietervdvn
Copy link
Contributor Author

Note that this test works if the profile is patched to have 'forward:factor' 10 times larger

@pietervdvn
Copy link
Contributor Author

If this bug is resolved, the warning in AspectedRouting/ProfileTestSuite.cs (priority is not within range) should be removed

pietervdvn added a commit to anyways-open/AspectedRouting that referenced this issue Jul 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant