Repository navigation
Reading relations and improved bike handling - #132
Conversation
Add explanation for using more than one option at a time
Don't consider gate and other barriers as absolute. Whith a bike one can pass all of these. Fix of boosting formular and a couple of other small improvments.
…code is uggly as it sums up the pavement and wayType Codes of all Encoders.
|
Thanks!
|
…t with our boosting. -> now the previously commented test case can be enabled. Additional a test for exceeding maximum negative boosting added.
|
thanks for your feedback.
— Am 16.12.2013 22:43, schrieb Peter:
|
|
First, we should concentrate on one thing and add tests. Then introducing another weight for bike and additional tests would be cool but should be done in a separate pull request. I.e. make every change as small and robust as possible ;) |
…ll distances are shorter comared to before. Anyhow, one test still fails and I don't have an idea why. The failed test output is as following: Failed tests: RoutingAlgorithmIT.testMonacoBike:161 FOUND 1 ERRORS. astarbi|SHORTEST returns path not matching the expected points of 84 Returned was 94 (expected distance 1671.0, was 1671.983439569666) from:468-966 43.73068455771767,7.421283689825812, to:49-482 43.72768520610984,7.418755948656445. expected:<0> but was:<1>
|
In a first attempt to create a test for the route relation handling I github.com/ratrun/graphhopper/commit/2da7423eda9e8b7f7a85505fb9633a6177c5c57d With this change the one run for the "astarbi" algorithm fails and I Failed tests: Could it be that by chance there is one other possibility , which nearly Here is the code, which detects the problem: // There are real world instances where A-B-C is identical to A-C (in Am 17.12.2013 20:56, schrieb Peter:
|
|
Were you able to understand this? To plot the route change the config.properties to use BIKE and no CH then do: ./graphhopper.sh web core/files/monaco.osm.gz and go to the browser with the necessary points. And append In general there are too many unrelated changes.
Why introduce this? What if a street has "straße" already in its name?
We should not introduce illegal roads for the normal BikeFlagEncoder
The encoder should only accept normal trails, no mountainbikes Would you mind to do the following: remove ALL unrelated changes like the above and probably more? BUT I don't want that you throw away those useful changes. Instead we should create a MountainBikeFlagEncoder which e.g. could extend BikeFlagEncoder and could allow a bit dirty and illegal things etc ;). This should be done in a separate issue/pullrequest. BTW: what is this :) ?
|
|
Thanks for the feedback. In the meantime I verified with the browser method that there are really Regarding "Auf Strasse": In case that a road has a name, than just this Regarding the wheeler ways "footway", "pedestrian" and "steps": Here I I suggest to make the type of the bicycle class configurable with the Following types could be added in the future: commute,trailer, Can you agree with this? Is this bicycle routing class on the same level Maybe you are right by critisising that currently there are too many Regarding the comment: "Multiple Encoderes!!!!!!!": Hopefully this just Am 19.12.2013 20:35, schrieb Peter:
|
oh, this is crazy :)
Ok, makes sense!
Oh, sure. Now I agree :) ! Regarding the instructions - maybe we should enhance this even more but different issue (#80)
I completely agree but not for this issue, ok?
Ok, but although this configuration is probably a better solution (than extending) there is a problem of a configurable encoder: if I change the configuration which effects the flag storage etc then no error is thrown when a different configured encoder is used while reading
Multiple encoders can be active at the same time - that is the idea behind the encoding manager. Only if chShortcuts is enabled (which is by default) this cannot happen. So would you mind to
|
…different routes with the same length, but different amount of locations were found. Now I moced the starting point a bit and now the algorithms "astarbi" and "dijkstrabi" give the same result.
Renaming of instruction "wheeler" into "pushing section", this seems to be the right translation. Introduction of OSM file "krems" which is used for route relation testing. Adding of some more BikeFalgEncoder Tests.
|
I have included a new osm file (krems) for two bicycle relation tests. I believe that now I have included all discussed issues, please review. |
Conflicts fixed: core/src/main/java/com/graphhopper/routing/Path.java core/src/main/java/com/graphhopper/util/Instruction.java core/src/main/java/com/graphhopper/util/InstructionUtil.java core/src/test/java/com/graphhopper/util/InstructionListTest.java
Conflicts fixed: core/src/main/java/com/graphhopper/routing/Path.java core/src/main/java/com/graphhopper/util/Instruction.java core/src/main/java/com/graphhopper/util/InstructionUtil.java core/src/test/java/com/graphhopper/util/InstructionListTest.java
|
Thanks - I'll have a look! |
|
Indeed this produces better routes for my local area. But I need to fix the multi encoder thing as well as adding more unit tests before merging. |
|
In order to do the merge I need to know what relation tags are necessary to get '18' or '-18'?
Ok, I think here you are just testing the max+min speed limitation |
|
There is a minor obstacle (update: the mismatch of the routing and images is just because if outdated routing files, I just meant the strange detour for ~150 meter) for this route which should look like: Can we tune this somehow? See the branch issue_132 where I integrated your pull request. @ratrun would you mind to ping me via email? |
… using relation flags); some minor fixes
|
I merged your branch - thanks again! Would you mind to look into the issue I mentioned? |
|
There are no relation tags, which result in a relation code of 18 and Am 22.12.2013 17:16, schrieb Peter:
|
|
The result cyclepath for this case is correct. It comes from Am 22.12.2013 20:26, schrieb Peter:
|
|
This detour is choosen because the HIGHWAY_SPEED for secondary is Am 23.12.2013 00:23, schrieb Peter:
|
|
Please take a look at github.com/ratrun/graphhopper/commit/7cf52f203984e7e65776f41f3504d7f718ba3523
|
|
Indeed this fixes the problem - thanks! (and +1 that you confirmed the change via test :) !) |


This tries to solve #76 and also #84 and improved the bicycle route routing by adding bonus and subtract malus speed values based on the value of the "network" tag. This bicycle routing now finds routes, which I believe are better compared to the current master version. Additionally I have made a hack for improved tuning instructions specifically for bicycles. These instructions contain information if the chosen edge is unpaved or paved, and if it is a wheeler edge. This part of the implementation needs some cleanup, because I put some bicycle specific code into the generic/car minded instruction parts as I could not find another way. Can somebody please point me to instructions how to push my branch to git? I'm completely new to git and don't know if somebody needs to give me "push" rights.