Repository navigation
Conversation
Member
Author
|
Replaced by #2738. |
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request removes the VehicleTagParsers and splits them up into normal TagParsers where each of them only fills a single EncodedValue. To achieve this some minor duplication was necessary e.g. the highwayValues+trackTypeValues in CarAccessParser contains similar data like defaultSpeedMap+trackTypeSpeedMap in CarAverageSpeedParser. IMO this is acceptable and we have an easier task to further move the customization work into a custom model.
Also we can now better use the car_average_speed in a custom model with a different
xy_accessencoded value (or no access restrictions via roads_access) because all tags have a speed associated and there is no tweak necessary for custom_model.speed like it occurs when you allow more highway tags in your custom model than in the car_access EV, see e.g. #2710.btw: the roads_access and roads_average_speed EVs could be replaced with a static implementation instead of filling up space in the edge flags.
Some further clean-up after this PR is necessary like removing the
graph.vehiclesconfig option to avoid e.g. the ugliness of 2x setting the turn_costs to true.