Automated traffic bollards
- 主要語言
- Rust
- 星號
- 21
- 分支
- 7
- PR 合併指標
- 30 天內沒有已合併 PR
描述
New modal filter type with special semantics -- the filter is ignored for residents or drivers with exemptions. The physical implementation could be ANPR (license plate) cameras or some kind of radar key to control a bollard up or down. From the modelling perspective in the tool, it means:
- In the route mode, there's a new checkbox defaulting to off for "resident who can drive through automated traffic bollards". When enabled, these filters are ignored.
And that's all. The shortcut calculation would treat these like any other filter, not allowing traffic past it. This implies that the problematic through-traffic is not caused by the drivers with these exemptions. Likewise, the predict impact mode remains the same -- the changes there reflect wider traffic patterns, not the few people who have this exemption.
Implementation should be fairly simple:
- [ ] Make a filter icon matching the existing dimensions/style in `assets/filters`
- [ ] Find or take a real photo of one with an OK license (like CC0)
- [x] Add the `ModalFilterType` case on the frontend and the `FilterKind` on the backend
- [x] Add the new checkbox to `RouteMode`
- [x] Update the `compareRoute` WASM API
- [x] Update `rebuild_router` to care about both `main_road_penalty` and this new boolean. Plumb through the logic to ignore the filter. When calculating shortcuts or impact, make sure to leave this disabled.
@Kandico, which steps do you feel comfortable doing? The first two design ones are hard for me; I can probably find time soon to handle the rest.
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
此 issue 描述了新增一種模態篩選器類型。先在前端找出 `ModalFilterType` enum,以及後端的 `FilterKind` enum。新的篩選器圖示需要建立在 `assets/filters` 中。必須更新 `RouteMode` 中的核取方塊邏輯和 `compareRoute` WASM API。最後,修改 `rebuild_router` 以處理新的 boolean 和 `main_road_penalty`。透過驗證啟用 resident 核取方塊時會忽略該篩選器來進行測試。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- wasm
- 領域
- backend, frontend, full-stack
- Issue 類型
- 功能
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100