Skip to content

Conversation

@friedkiwi
Copy link

Please read our contributing guide and note that also your contribution falls under the Apache License 2.0 as outlined there.

Your first contribution should include a change where you add yourself to the CONTRIBUTORS.md file.

ratrun and others added 30 commits June 21, 2024 18:06
…rack (#3022)

* Slightly increase bicycle priority classification on "good" highway=track

* Changes from review
* clean up bike speed parser

* test fix and minor cleanup in priority parser

* further clean up
* De-prioritize ways tagged with foot=use_sidepath

* Add reason for not using REACH_DESTINATION

* Update core/src/main/java/com/graphhopper/routing/util/parsers/FootPriorityParser.java

Co-authored-by: Peter <graphhopper@gmx.de>

---------

Co-authored-by: Peter <graphhopper@gmx.de>
* Assume Toll.HGV for all roads in Switzerland

* Assume Toll.HGV for all roads in Liechtenstein
* query weighting should use the turn times (not weights) given by the actual weighting
* related: da748e6
* Improvement for bicycle speed for designated path with tracktype

* Update core/src/main/java/com/graphhopper/routing/util/parsers/BikeCommonAverageSpeedParser.java

Co-authored-by: Peter <graphhopper@gmx.de>

* Remove a new test which passes without the improvement

---------

Co-authored-by: Peter <graphhopper@gmx.de>
karussell and others added 30 commits December 10, 2025 16:39
* Provide Hong Kong and Macao definition

* Add contribution

* alphab. order regarding isocode not name

Co-authored-by: otbutz <tbutz@optitool.de>

---------

Co-authored-by: Peter <graphhopper@gmx.de>
Co-authored-by: otbutz <tbutz@optitool.de>
* Limit speeds by country default speed limits

* Update contributions

* Mention max_speed encoded value requirement

* Update description for max_speed

* Mention max_speed encoded value in model files
* mtb: consider bike_network and mtb_network

* minor
#3257)

* * Store pillar node count as an unsigned short. This reduces geometry header size from 3 bytes to 2 bytes.
* Fixed the signed overflow bug in `getPillarCount` that incorrectly limited edges to ~32k pillar nodes.
* Simplify read/write logic by using `BitUtil.toShort/fromShort` instead of manual 3-byte bit shifting.
* Add explicit bounds check for `MAX_PILLAR_NODES` during write.

* Adjusted expectations to new Header Size (2 Bytes instead of 3 Bytes)

* Add tests for pillar node limits, ensuring 2-byte header support (65k nodes) and verifying correct overflow handling and storage behavior.

* Added myself to contributors

* Bumped VERSION_GEOMETRY to 8 due to binary format change
* move country rules into parser

* consider review comments

* fix
* move country rules into parser

* country rules for bike and foot
When reading key indices from storage, getShort() returns a signed short
which gets sign-extended to int. For key indices >= 8192, the stored value
(keyIndex << 2) exceeds 32767 and has its sign bit set. This caused the
unsigned right shift to produce ~1 billion instead of the correct index,
resulting in IndexOutOfBoundsException.

Fix by using Short.toUnsignedInt() to properly handle the unsigned 16-bit value.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* test

* fix duration

* Revert "fix duration"

This reverts commit 8f1b797.

* just estimate the speed based on ferry length

* fix test

* fix comment

* reduce waiting time penalty for longer ferries

* account for delay directly

* move speed calculation into FerrySpeedCalculator

* minor comment

* rename to duration:seconds (related to #2849)

* minor comment

* re-add todo

* rename again
The property was mentioned in an error message only.
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

Successfully merging this pull request may close these issues.