Repository navigation
deprecate graph.flag_encoders and use custom weighting in example config - #2667
Conversation
| ##### 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 |
There was a problem hiding this comment.
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.
|
Yeah, it is confusing it is still called |
We do not yet throw an exception and just print a warning. I.e. flag_encoders can still be used.
Yes. But with flag_encoders it is worse IMO? |
|
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. |
The option flag_encoders is now a bit confusing in the config-example.yml