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
The library ships a companion browser-based map webapp (`tp-webapp`) that lets you visually inspect and edit a calculated train path before using it for projection. No npm, no Node.js, no frontend build step required — the web assets are embedded in the binary at compile time using `rust-embed`.
85
+
86
+
### Modes
87
+
88
+
| Mode | Command | Use case |
89
+
|------|---------|----------|
90
+
|**Standalone**|`tp-cli webapp`| Review/edit an existing path file; save result to disk; server stays alive |
91
+
|**Integrated**|`tp-cli … --review`| Pause the projection pipeline after path calculation; confirm or abort in the browser |
92
+
93
+
### What You Can Do in the Browser
94
+
95
+
- View all network segments on a Leaflet map (OpenStreetMap basemap, toggleable)
96
+
- Path segments are highlighted with a colour-coded confidence scale
97
+
-**Add** a netelement to the path by clicking it on the map — snapped to the correct topological position
98
+
-**Remove** a path segment by clicking it — segment reverts to the default style
99
+
- Sidebar shows an ordered list of segments with probability scores
100
+
-**Dark mode** toggle (auto-activates from OS `prefers-color-scheme`)
101
+
-**Close Tab** button for clean exit after the server shuts down
102
+
103
+
### Standalone Usage
104
+
105
+
```sh
106
+
tp-cli webapp \
107
+
--network network.geojson \
108
+
--train-path path.csv \
109
+
--output reviewed_path.csv
110
+
```
111
+
112
+
A browser opens at `http://127.0.0.1:8765`. Click **Save** to write the reviewed path; the server stays alive for further edits. Press Ctrl+C when done.
113
+
114
+
The saved file is accepted directly by `--train-path`:
0 commit comments