Skip to content

deprecate graph.flag_encoders and use custom weighting in example config - #2667

Merged
karussell merged 4 commits into
masterfrom
flag_encoders_str
Oct 5, 2022
Merged

karussell merged 4 commits into
masterfrom
flag_encoders_str

Conversation

@karussell

Copy link
Copy Markdown
Member

The option flag_encoders is now a bit confusing in the config-example.yml

@karussell
karussell temporarily deployed to benchmarks October 4, 2022 10:29 Inactive
Comment thread config-example.yml
Comment on lines -9 to -22
##### Vehicles #####

# More options: foot,hike,bike,bike2,mtb,racingbike,motorcycle,wheelchair (comma separated)
# bike2 takes elevation data into account (like up-hill is slower than down-hill) and requires enabling graph.elevation.provider below.
# graph.flag_encoders: car

# Enable turn restrictions for car or motorcycle.
# graph.flag_encoders: car|turn_costs=true

# Add additional information to every edge. Used for path details (#1548), better instructions (#1844) and tunnel/bridge interpolation (#798).
# Default values are: road_class,road_class_link,road_environment,max_speed,road_access (since #1805)
# More are: surface,smoothness,max_width,max_height,max_weight,hgv,max_axle_load,max_length,hazmat,hazmat_tunnel,hazmat_water,toll,track_type,
# mtb_rating, hike_rating,horse_rating,lanes
# graph.encoded_values: surface,toll,track_type

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The section with the "vehicles" is now only an additional configuration possibility, so I moved it behind the profiles. Things like turn_costs: true can be used without modifying the graph.vehicles/graph.flag_encoders string.

@karussell
karussell temporarily deployed to benchmarks October 4, 2022 10:39 Inactive
@karussell karussell changed the title deprecate graph.flag_encoders deprecate graph.flag_encoders and use custom weighting in example config Oct 4, 2022
@easbar

easbar commented Oct 4, 2022

Copy link
Copy Markdown
Member

Yeah, it is confusing it is still called graph.flag_encoders, but since this is a breaking change I thought we wait with the renaming until we have something we actually want. We don't want graph.vehicles either... But since we are working on 7.0-SNAPSHOT now, maybe doing the breaking change now and doing it again later is ok. Especially since graph.flag_encoders is only needed for some advanced use-cases anymore and most configs will work by only specifying the profiles and skipping graph.flag_encoders altogether.

@karussell

Copy link
Copy Markdown
Member Author

but since this is a breaking change

We do not yet throw an exception and just print a warning. I.e. flag_encoders can still be used.

We don't want graph.vehicles either...

Yes. But with flag_encoders it is worse IMO?

@easbar

easbar commented Oct 4, 2022

Copy link
Copy Markdown
Member

So now we still have the thing we don't want but two names for it, but I agree it is less confusing with the new name. I'm happy as long as we can remove this eventually.

Comment thread config-example.yml Resolved
@karussell
karussell temporarily deployed to benchmarks October 4, 2022 15:19 Inactive
@karussell karussell added this to the 7.0 milestone Oct 5, 2022
@karussell
karussell merged commit a18e811 into master Oct 5, 2022
@karussell
karussell deleted the flag_encoders_str branch October 5, 2022 09:43

This branch was previously deployed

1 inactive deployment
benchmarks — d7d8cbd4 Deployed Oct 4, 2022 by karussell
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.

2 participants