You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To capture turn restrictions, we need a new frontier model that can restrict links where a turn restriction is present (like no left turn or no u-turn). The restriction can be represented as a tuple of edge ids where if an edge id tuples exists in the set of all turn restrictions, the model should return an invalid frontier.
Our current frontier model trait will need to be expanded to include the previous edge in scope:
In addition, it might make sense to allow chaining of frontier models so a user can easily define what restrictions are desired at configuration time. This should be as simple as making the frontier model type go from: Arc<dyn FrontierModel> to &[Arc<dyn FrontierModel>] and omitting a link from the search if any of the models return an invalid frontier.
The text was updated successfully, but these errors were encountered:
To capture turn restrictions, we need a new frontier model that can restrict links where a turn restriction is present (like no left turn or no u-turn). The restriction can be represented as a tuple of edge ids where if an edge id tuples exists in the set of all turn restrictions, the model should return an invalid frontier.
Our current frontier model trait will need to be expanded to include the previous edge in scope:
In addition, it might make sense to allow chaining of frontier models so a user can easily define what restrictions are desired at configuration time. This should be as simple as making the frontier model type go from:
Arc<dyn FrontierModel>
to&[Arc<dyn FrontierModel>]
and omitting a link from the search if any of the models return an invalid frontier.The text was updated successfully, but these errors were encountered: