bcgov / ols-router

BC Advanced Route Planner
https://bcgov.github.io/ols-router/
Apache License 2.0
23 stars 11 forks source link

Add support for notification-only road restrictions #290

Open mraross opened 3 years ago

mraross commented 3 years ago

Add support for a road restriction that must appear as a notification in turn-by-turn directions whenever a given road segment is included in best route but it must not affect the computation of best route itself. Note that to accommodate custom notices, road restrictions must include a field that can hold the custom notice's text.

OnRoute needs notification-only road restrictions to notify users of road restrictions that only last part of the day without affecting their permit routes (LS003). TransLink needs this to put in timed, custom notices of road closures to eliminate the manual effort of removing a notice at the right time. Given that road restrictions may have an associated time period, this will meet their need.