Skip to content

Split VehicleTagParsers - #2729

Closed
karussell wants to merge 15 commits into
masterfrom
split_vehicle
Closed

karussell wants to merge 15 commits into
masterfrom
split_vehicle

Conversation

@karussell

Copy link
Copy Markdown
Member

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_access encoded 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.vehicles config option to avoid e.g. the ugliness of 2x setting the turn_costs to true.

@karussell
karussell requested a review from easbar January 23, 2023 07:14
@karussell karussell added this to the 7.0 milestone Jan 23, 2023
@karussell
karussell temporarily deployed to benchmarks January 23, 2023 08:18 — with GitHub Actions Inactive
@karussell
karussell temporarily deployed to benchmarks January 25, 2023 07:55 — with GitHub Actions Inactive
@karussell

Copy link
Copy Markdown
Member Author

Replaced by #2738.

@karussell karussell closed this Jan 31, 2023
@karussell karussell removed this from the 7.0 milestone Jan 31, 2023
@easbar
easbar deleted the split_vehicle branch January 31, 2023 18:14

This branch was previously deployed

1 inactive deployment
benchmarks — a97f8a33 Deployed Jan 25, 2023 by karussell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant