From 72bbb48fa3ecff467edcc099b9a21059f2ca4b91 Mon Sep 17 00:00:00 2001 From: David Neuhauss Date: Sat, 7 Mar 2026 12:01:55 +0100 Subject: [PATCH] add excalidraw docs --- .../alternative-routing-flow.excalidraw | 1797 +++++++++++++++++ .../regular-trip-detection.excalidraw | 993 +++++++++ 2 files changed, 2790 insertions(+) create mode 100644 docs/architecture/alternative-routing-flow.excalidraw create mode 100644 docs/architecture/regular-trip-detection.excalidraw diff --git a/docs/architecture/alternative-routing-flow.excalidraw b/docs/architecture/alternative-routing-flow.excalidraw new file mode 100644 index 0000000..e8efaff --- /dev/null +++ b/docs/architecture/alternative-routing-flow.excalidraw @@ -0,0 +1,1797 @@ +{ + "type": "excalidraw", + "version": 2, + "source": "https://marketplace.visualstudio.com/items?itemName=pomdtr.excalidraw-editor", + "elements": [ + { + "id": "title", + "type": "text", + "x": 200, + "y": 20, + "width": 537.3104858398438, + "height": 32.400000000000006, + "text": "Alternative Route Suggestion — High-Level Flow", + "fontSize": 24, + "fontFamily": 6, + "textAlign": "center", + "verticalAlign": "top", + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 2, + "roughness": 0, + "opacity": 100, + "version": 13, + "versionNonce": 1755758597, + "index": "a0", + "isDeleted": false, + "strokeStyle": "solid", + "angle": 0, + "seed": 842640427, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "updated": 1772880660469, + "link": null, + "locked": false, + "containerId": null, + "originalText": "Alternative Route Suggestion — High-Level Flow", + "autoResize": true, + "lineHeight": 1.35 + }, + { + "id": "t1", + "type": "rectangle", + "x": 40, + "y": 90, + "width": 180, + "height": 60, + "strokeColor": "#6741d9", + "backgroundColor": "#ede9fe", + "fillStyle": "solid", + "strokeWidth": 2, + "roughness": 0, + "opacity": 100, + "roundness": { + "type": 3 + }, + "version": 3, + "versionNonce": 1547335525, + "index": "a1", + "isDeleted": false, + "strokeStyle": "solid", + "angle": 0, + "seed": 1781067467, + "groupIds": [], + "frameId": null, + "boundElements": [], + "updated": 1772880660469, + "link": null, + "locked": false + }, + { + "id": "t1-text", + "type": "text", + "x": 75, + "y": 101, + "width": 87.79367065429688, + "height": 37.800000000000004, + "text": "User requests\nalternatives", + "fontSize": 14, + "fontFamily": 6, + "textAlign": "center", + "strokeColor": "#6741d9", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 1, + "roughness": 0, + "opacity": 100, + "version": 52, + "versionNonce": 1193296581, + "index": "a2", + "isDeleted": false, + "strokeStyle": "solid", + "angle": 0, + "seed": 1951849835, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [ + { + "id": "arr-t1", + "type": "arrow" + } + ], + "updated": 1772880660469, + "link": null, + "locked": false, + "verticalAlign": "top", + "containerId": null, + "originalText": "User requests\nalternatives", + "autoResize": true, + "lineHeight": 1.35 + }, + { + "id": "t2", + "type": "rectangle", + "x": 280, + "y": 90, + "width": 180, + "height": 60, + "strokeColor": "#6741d9", + "backgroundColor": "#ede9fe", + "fillStyle": "solid", + "strokeWidth": 2, + "roughness": 0, + "opacity": 100, + "roundness": { + "type": 3 + }, + "version": 3, + "versionNonce": 502637093, + "index": "a3", + "isDeleted": false, + "strokeStyle": "solid", + "angle": 0, + "seed": 1812854795, + "groupIds": [], + "frameId": null, + "boundElements": [], + "updated": 1772880660469, + "link": null, + "locked": false + }, + { + "id": "t2-text", + "type": "text", + "x": 321, + "y": 102, + "width": 83.78970336914062, + "height": 37.800000000000004, + "text": "User uploads\na car trip", + "fontSize": 14, + "fontFamily": 6, + "textAlign": "center", + "strokeColor": "#6741d9", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 1, + "roughness": 0, + "opacity": 100, + "version": 43, + "versionNonce": 1705514373, + "index": "a4", + "isDeleted": false, + "strokeStyle": "solid", + "angle": 0, + "seed": 524861099, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "updated": 1772880660469, + "link": null, + "locked": false, + "verticalAlign": "top", + "containerId": null, + "originalText": "User uploads\na car trip", + "autoResize": true, + "lineHeight": 1.35 + }, + { + "id": "t3", + "type": "rectangle", + "x": 520, + "y": 90, + "width": 180, + "height": 60, + "strokeColor": "#6741d9", + "backgroundColor": "#ede9fe", + "fillStyle": "solid", + "strokeWidth": 2, + "roughness": 0, + "opacity": 100, + "roundness": { + "type": 3 + }, + "version": 3, + "versionNonce": 695540965, + "index": "a5", + "isDeleted": false, + "strokeStyle": "solid", + "angle": 0, + "seed": 951169355, + "groupIds": [], + "frameId": null, + "boundElements": [], + "updated": 1772880660469, + "link": null, + "locked": false + }, + { + "id": "t3-text", + "type": "text", + "x": 537, + "y": 101, + "width": 147.83946228027344, + "height": 37.800000000000004, + "text": "Daily scheduler detects\nrecurring car trip", + "fontSize": 14, + "fontFamily": 6, + "textAlign": "center", + "strokeColor": "#6741d9", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 1, + "roughness": 0, + "opacity": 100, + "version": 25, + "versionNonce": 820656197, + "index": "a6", + "isDeleted": false, + "strokeStyle": "solid", + "angle": 0, + "seed": 698568683, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [ + { + "id": "arr-t3", + "type": "arrow" + } + ], + "updated": 1772880660469, + "link": null, + "locked": false, + "verticalAlign": "top", + "containerId": null, + "originalText": "Daily scheduler detects\nrecurring car trip", + "autoResize": true, + "lineHeight": 1.35 + }, + { + "id": "arr-t1", + "type": "arrow", + "x": 133.2690834234416, + "y": 150, + "width": 213.95123547008575, + "height": 78.67713073709086, + "points": [ + [ + 0, + 0 + ], + [ + 213.95123547008575, + 78.67713073709086 + ] + ], + "strokeColor": "#6741d9", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 2, + "roughness": 0, + "opacity": 100, + "startArrowhead": null, + "endArrowhead": "arrow", + "lastCommittedPoint": null, + "version": 152, + "versionNonce": 1977935781, + "index": "a7", + "isDeleted": false, + "strokeStyle": "solid", + "angle": 0, + "seed": 1411914379, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "updated": 1772880660469, + "link": null, + "locked": false, + "startBinding": { + "elementId": "t1-text", + "focus": 0.7061312824577773, + "gap": 11.199999999999989 + }, + "endBinding": { + "elementId": "carta-box", + "focus": 0.19751809720785937, + "gap": 2 + } + }, + { + "id": "arr-t2", + "type": "arrow", + "x": 370, + "y": 150, + "width": 0, + "height": 80, + "points": [ + [ + 0, + 0 + ], + [ + 0, + 80 + ] + ], + "strokeColor": "#6741d9", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 2, + "roughness": 0, + "opacity": 100, + "startArrowhead": null, + "endArrowhead": "arrow", + "lastCommittedPoint": null, + "version": 3, + "versionNonce": 1519561477, + "index": "a8", + "isDeleted": false, + "strokeStyle": "solid", + "angle": 0, + "seed": 1962578219, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "updated": 1772880660469, + "link": null, + "locked": false, + "startBinding": null, + "endBinding": null + }, + { + "id": "arr-t3", + "type": "arrow", + "x": 606.3732053948719, + "y": 150, + "width": 195.47275166953926, + "height": 78.84356490593379, + "points": [ + [ + 0, + 0 + ], + [ + -195.47275166953926, + 78.84356490593379 + ] + ], + "strokeColor": "#6741d9", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 2, + "roughness": 0, + "opacity": 100, + "startArrowhead": null, + "endArrowhead": "arrow", + "lastCommittedPoint": null, + "version": 70, + "versionNonce": 527499877, + "index": "a9", + "isDeleted": false, + "strokeStyle": "solid", + "angle": 0, + "seed": 1300575179, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "updated": 1772880660469, + "link": null, + "locked": false, + "startBinding": { + "elementId": "t3-text", + "focus": -0.578396300783589, + "gap": 11.199999999999989 + }, + "endBinding": { + "elementId": "carta-box", + "focus": -0.0918690601900732, + "gap": 1 + } + }, + { + "id": "carta-box", + "type": "rectangle", + "x": 210, + "y": 229, + "width": 320, + "height": 49, + "strokeColor": "#0c8599", + "backgroundColor": "#e3fafc", + "fillStyle": "solid", + "strokeWidth": 2, + "roughness": 0, + "opacity": 100, + "roundness": { + "type": 3 + }, + "version": 23, + "versionNonce": 424504773, + "index": "aA", + "isDeleted": false, + "strokeStyle": "solid", + "angle": 0, + "seed": 232948331, + "groupIds": [], + "frameId": null, + "boundElements": [ + { + "id": "arr-t1", + "type": "arrow" + }, + { + "id": "arr-t3", + "type": "arrow" + }, + { + "id": "arr-carta-f1", + "type": "arrow" + } + ], + "updated": 1772880660469, + "link": null, + "locked": false + }, + { + "id": "carta-text", + "type": "text", + "x": 283.8448028564453, + "y": 245, + "width": 187.7392578125, + "height": 18.900000000000002, + "text": "Fetch routes from CARTA API", + "fontSize": 14, + "fontFamily": 6, + "textAlign": "center", + "strokeColor": "#0c8599", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 1, + "roughness": 0, + "opacity": 100, + "version": 15, + "versionNonce": 658861349, + "index": "aB", + "isDeleted": false, + "strokeStyle": "solid", + "angle": 0, + "seed": 2128411915, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "updated": 1772880660469, + "link": null, + "locked": false, + "verticalAlign": "top", + "containerId": null, + "originalText": "Fetch routes from CARTA API", + "autoResize": true, + "lineHeight": 1.35 + }, + { + "id": "arr-carta-f1", + "type": "arrow", + "x": 369, + "y": 280, + "width": 0.4275660142214974, + "height": 45, + "points": [ + [ + 0, + 0 + ], + [ + 0.4275660142214974, + 45 + ] + ], + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 2, + "roughness": 0, + "opacity": 100, + "startArrowhead": null, + "endArrowhead": "arrow", + "lastCommittedPoint": null, + "version": 62, + "versionNonce": 641358245, + "index": "aC", + "isDeleted": false, + "strokeStyle": "solid", + "angle": 0, + "seed": 1810834347, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "updated": 1772880688662, + "link": null, + "locked": false, + "startBinding": { + "elementId": "carta-box", + "focus": 0.007812314238247655, + "gap": 2 + }, + "endBinding": { + "elementId": "f1-text", + "focus": 0.021467130930108214, + "gap": 15.593547687128932 + } + }, + { + "id": "f1", + "type": "rectangle", + "x": 210.7137830071107, + "y": 328.59354768712893, + "width": 320, + "height": 60, + "strokeColor": "#e8590c", + "backgroundColor": "#fff4e6", + "fillStyle": "solid", + "strokeWidth": 2, + "roughness": 0, + "opacity": 100, + "roundness": { + "type": 3 + }, + "version": 48, + "versionNonce": 32299595, + "index": "aD", + "isDeleted": false, + "strokeStyle": "solid", + "angle": 0, + "seed": 1296266827, + "groupIds": [], + "frameId": null, + "boundElements": [], + "updated": 1772880681705, + "link": null, + "locked": false + }, + { + "id": "f1-text", + "type": "text", + "x": 215.7137830071107, + "y": 340.59354768712893, + "width": 301.600830078125, + "height": 37.800000000000004, + "text": "Filter: Travel time\nRemove routes exceeding acceptable extra time", + "fontSize": 14, + "fontFamily": 6, + "textAlign": "center", + "strokeColor": "#e8590c", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 1, + "roughness": 0, + "opacity": 100, + "version": 42, + "versionNonce": 225190341, + "index": "aE", + "isDeleted": false, + "strokeStyle": "solid", + "angle": 0, + "seed": 833909995, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [ + { + "id": "arr-carta-f1", + "type": "arrow" + }, + { + "id": "arr-f1-f2", + "type": "arrow" + } + ], + "updated": 1772880692427, + "link": null, + "locked": false, + "verticalAlign": "top", + "containerId": null, + "originalText": "Filter: Travel time\nRemove routes exceeding acceptable extra time", + "autoResize": true, + "lineHeight": 1.35 + }, + { + "id": "arr-f1-f2", + "type": "arrow", + "x": 369.2862169928893, + "y": 390.0211137013504, + "width": 0.7137830071108056, + "height": 45.717301957335735, + "points": [ + [ + 0, + 0 + ], + [ + -0.7137830071108056, + 45.717301957335735 + ] + ], + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 2, + "roughness": 0, + "opacity": 100, + "startArrowhead": null, + "endArrowhead": "arrow", + "lastCommittedPoint": null, + "version": 92, + "versionNonce": 192726155, + "index": "aF", + "isDeleted": false, + "strokeStyle": "solid", + "angle": 0, + "seed": 1758240651, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "updated": 1772880699207, + "link": null, + "locked": false, + "startBinding": { + "elementId": "f1-text", + "focus": -0.021500607296037286, + "gap": 11.62756601422143 + }, + "endBinding": null + }, + { + "id": "f2", + "type": "rectangle", + "x": 210.7137830071108, + "y": 440.0211137013503, + "width": 320, + "height": 60, + "strokeColor": "#e8590c", + "backgroundColor": "#fff4e6", + "fillStyle": "solid", + "strokeWidth": 2, + "roughness": 0, + "opacity": 100, + "roundness": { + "type": 3 + }, + "version": 29, + "versionNonce": 248007083, + "index": "aG", + "isDeleted": false, + "strokeStyle": "solid", + "angle": 0, + "seed": 1824945707, + "groupIds": [], + "frameId": null, + "boundElements": [ + { + "id": "arr-f2-meteo", + "type": "arrow" + } + ], + "updated": 1772880712638, + "link": null, + "locked": false + }, + { + "id": "f2-text", + "type": "text", + "x": 215.7137830071108, + "y": 452.0211137013503, + "width": 287.4749450683594, + "height": 37.800000000000004, + "text": "Filter: Weather (if user opt-in)\nDrop cycling/walking routes in bad conditions", + "fontSize": 14, + "fontFamily": 6, + "textAlign": "center", + "strokeColor": "#e8590c", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 1, + "roughness": 0, + "opacity": 100, + "version": 39, + "versionNonce": 1036714693, + "index": "aH", + "isDeleted": false, + "strokeStyle": "solid", + "angle": 0, + "seed": 210532555, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [ + { + "id": "arr-f2-f3", + "type": "arrow" + } + ], + "updated": 1772880810245, + "link": null, + "locked": false, + "verticalAlign": "top", + "containerId": null, + "originalText": "Filter: Weather (if user opt-in)\nDrop cycling/walking routes in bad conditions", + "autoResize": true, + "lineHeight": 1.35 + }, + { + "id": "meteo-ext", + "type": "rectangle", + "x": 592.8621699288929, + "y": 446.5935476871289, + "width": 150, + "height": 44, + "strokeColor": "#2f9e44", + "backgroundColor": "#ebfbee", + "fillStyle": "solid", + "strokeWidth": 1, + "roughness": 0, + "opacity": 100, + "roundness": { + "type": 3 + }, + "version": 33, + "versionNonce": 1961065861, + "index": "aI", + "isDeleted": false, + "strokeStyle": "solid", + "angle": 0, + "seed": 1438197611, + "groupIds": [], + "frameId": null, + "boundElements": [ + { + "id": "arr-f2-meteo", + "type": "arrow" + } + ], + "updated": 1772880719426, + "link": null, + "locked": false + }, + { + "id": "meteo-text", + "type": "text", + "x": 614.2791790924393, + "y": 461.0211137013504, + "width": 99.08609008789062, + "height": 17.55, + "text": "Open-Meteo API", + "fontSize": 13, + "fontFamily": 6, + "textAlign": "center", + "strokeColor": "#2f9e44", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 1, + "roughness": 0, + "opacity": 100, + "version": 39, + "versionNonce": 1754598245, + "index": "aJ", + "isDeleted": false, + "strokeStyle": "solid", + "angle": 0, + "seed": 1050083851, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [ + { + "id": "arr-f2-meteo", + "type": "arrow" + } + ], + "updated": 1772880722054, + "link": null, + "locked": false, + "verticalAlign": "top", + "containerId": null, + "originalText": "Open-Meteo API", + "autoResize": true, + "lineHeight": 1.35 + }, + { + "id": "arr-f2-meteo", + "type": "arrow", + "x": 533.5689150355535, + "y": 467.16598167290755, + "width": 57.865688879118125, + "height": 0.7137830071106919, + "points": [ + [ + 0, + 0 + ], + [ + 57.865688879118125, + 0.7137830071106919 + ] + ], + "strokeColor": "#2f9e44", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 1, + "roughness": 0, + "opacity": 100, + "startArrowhead": null, + "endArrowhead": "arrow", + "lastCommittedPoint": null, + "version": 75, + "versionNonce": 1190743973, + "index": "aK", + "isDeleted": false, + "strokeStyle": "solid", + "angle": 0, + "seed": 270567595, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "updated": 1772880719923, + "link": null, + "locked": false, + "startBinding": { + "elementId": "f2", + "focus": -0.15212467112003403, + "gap": 2.855132028442654 + }, + "endBinding": { + "elementId": "meteo-ext", + "focus": -0.009987459223222417, + "gap": 1.42756601422127 + } + }, + { + "id": "arr-f2-f3", + "type": "arrow", + "x": 369.2862169928893, + "y": 504.30381174401464, + "width": 0.7137830071108056, + "height": 45.71730195733562, + "points": [ + [ + 0, + 0 + ], + [ + -0.7137830071108056, + 45.71730195733562 + ] + ], + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 2, + "roughness": 0, + "opacity": 100, + "startArrowhead": null, + "endArrowhead": "arrow", + "lastCommittedPoint": null, + "version": 61, + "versionNonce": 1447903947, + "index": "aL", + "isDeleted": false, + "strokeStyle": "solid", + "angle": 0, + "seed": 268450635, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "updated": 1772880813125, + "link": null, + "locked": false, + "startBinding": { + "elementId": "f2-text", + "focus": -0.07190155325072468, + "gap": 14.48269804266431 + }, + "endBinding": null + }, + { + "id": "f3", + "type": "rectangle", + "x": 212.14134902133208, + "y": 553.590028736904, + "width": 320, + "height": 60, + "strokeColor": "#e8590c", + "backgroundColor": "#fff4e6", + "fillStyle": "solid", + "strokeWidth": 2, + "roughness": 0, + "opacity": 100, + "roundness": { + "type": 3 + }, + "version": 47, + "versionNonce": 1041352811, + "index": "aM", + "isDeleted": false, + "strokeStyle": "solid", + "angle": 0, + "seed": 1787861483, + "groupIds": [], + "frameId": null, + "boundElements": [], + "updated": 1772880820133, + "link": null, + "locked": false + }, + { + "id": "f3-text", + "type": "text", + "x": 217.14134902133208, + "y": 565.590028736904, + "width": 303.0428466796875, + "height": 37.800000000000004, + "text": "Filter: Inefficient transit\nDrop transit with more walking than direct walk", + "fontSize": 14, + "fontFamily": 6, + "textAlign": "center", + "strokeColor": "#e8590c", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 1, + "roughness": 0, + "opacity": 100, + "version": 59, + "versionNonce": 892568331, + "index": "aN", + "isDeleted": false, + "strokeStyle": "solid", + "angle": 0, + "seed": 1557931147, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "updated": 1772880820133, + "link": null, + "locked": false, + "verticalAlign": "top", + "containerId": null, + "originalText": "Filter: Inefficient transit\nDrop transit with more walking than direct walk", + "autoResize": true, + "lineHeight": 1.35 + }, + { + "id": "arr-f3-best", + "type": "arrow", + "x": 368.5724339857786, + "y": 615.7313777582359, + "width": 0, + "height": 50, + "points": [ + [ + 0, + 0 + ], + [ + 0, + 50 + ] + ], + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 2, + "roughness": 0, + "opacity": 100, + "startArrowhead": null, + "endArrowhead": "arrow", + "lastCommittedPoint": null, + "version": 43, + "versionNonce": 483046667, + "index": "aO", + "isDeleted": false, + "strokeStyle": "solid", + "angle": 0, + "seed": 513628971, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "updated": 1772880829690, + "link": null, + "locked": false, + "startBinding": null, + "endBinding": null + }, + { + "id": "best", + "type": "rectangle", + "x": 210.7137830071107, + "y": 670.0140758009002, + "width": 320, + "height": 60, + "strokeColor": "#1971c2", + "backgroundColor": "#e7f5ff", + "fillStyle": "solid", + "strokeWidth": 2, + "roughness": 0, + "opacity": 100, + "roundness": { + "type": 3 + }, + "version": 21, + "versionNonce": 870702085, + "index": "aP", + "isDeleted": false, + "strokeStyle": "solid", + "angle": 0, + "seed": 205438411, + "groupIds": [], + "frameId": null, + "boundElements": [], + "updated": 1772880825837, + "link": null, + "locked": false + }, + { + "id": "best-text", + "type": "text", + "x": 215.7137830071107, + "y": 682.0140758009002, + "width": 287.75494384765625, + "height": 37.800000000000004, + "text": "Select best alternative(s)\nbased on speed & physical activity preference", + "fontSize": 14, + "fontFamily": 6, + "textAlign": "center", + "strokeColor": "#1971c2", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 1, + "roughness": 0, + "opacity": 100, + "version": 32, + "versionNonce": 1533229483, + "index": "aQ", + "isDeleted": false, + "strokeStyle": "solid", + "angle": 0, + "seed": 282774635, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [ + { + "id": "arr-best-out", + "type": "arrow" + } + ], + "updated": 1772880847805, + "link": null, + "locked": false, + "verticalAlign": "top", + "containerId": null, + "originalText": "Select best alternative(s)\nbased on speed & physical activity preference", + "autoResize": true, + "lineHeight": 1.35 + }, + { + "id": "arr-best-out", + "type": "arrow", + "x": 367.8586509786678, + "y": 732.1554248222324, + "width": 1.4275660142214974, + "height": 42.148386921782276, + "points": [ + [ + 0, + 0 + ], + [ + 1.4275660142214974, + 42.148386921782276 + ] + ], + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 2, + "roughness": 0, + "opacity": 100, + "startArrowhead": null, + "endArrowhead": "arrow", + "lastCommittedPoint": null, + "version": 83, + "versionNonce": 468412645, + "index": "aR", + "isDeleted": false, + "strokeStyle": "solid", + "angle": 0, + "seed": 1346111243, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "updated": 1772880851990, + "link": null, + "locked": false, + "startBinding": { + "elementId": "best-text", + "focus": -0.049884932340345356, + "gap": 12.341349021332235 + }, + "endBinding": null + }, + { + "id": "out1", + "type": "rectangle", + "x": 40.713783007110806, + "y": 777.8727267795681, + "width": 180, + "height": 60, + "strokeColor": "#6741d9", + "backgroundColor": "#ede9fe", + "fillStyle": "solid", + "strokeWidth": 2, + "roughness": 0, + "opacity": 100, + "roundness": { + "type": 3 + }, + "version": 34, + "versionNonce": 1023189003, + "index": "aS", + "isDeleted": false, + "strokeStyle": "solid", + "angle": 0, + "seed": 282914219, + "groupIds": [], + "frameId": null, + "boundElements": [], + "updated": 1772880857262, + "link": null, + "locked": false + }, + { + "id": "out1-text", + "type": "text", + "x": 54.27917909243922, + "y": 788.731377758236, + "width": 140.39146423339844, + "height": 37.800000000000004, + "text": "Return routes\nto user (API response)", + "fontSize": 14, + "fontFamily": 6, + "textAlign": "center", + "strokeColor": "#6741d9", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 1, + "roughness": 0, + "opacity": 100, + "version": 60, + "versionNonce": 1775544395, + "index": "aT", + "isDeleted": false, + "strokeStyle": "solid", + "angle": 0, + "seed": 1709703243, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "updated": 1772880859647, + "link": null, + "locked": false, + "verticalAlign": "top", + "containerId": null, + "originalText": "Return routes\nto user (API response)", + "autoResize": true, + "lineHeight": 1.35 + }, + { + "id": "out2", + "type": "rectangle", + "x": 280.7137830071108, + "y": 777.8727267795681, + "width": 180, + "height": 60, + "strokeColor": "#6741d9", + "backgroundColor": "#ede9fe", + "fillStyle": "solid", + "strokeWidth": 2, + "roughness": 0, + "opacity": 100, + "roundness": { + "type": 3 + }, + "version": 36, + "versionNonce": 1276533067, + "index": "aU", + "isDeleted": false, + "strokeStyle": "solid", + "angle": 0, + "seed": 423083755, + "groupIds": [], + "frameId": null, + "boundElements": [], + "updated": 1772880857262, + "link": null, + "locked": false + }, + { + "id": "out2-text", + "type": "text", + "x": 311.4099712630963, + "y": 782.4451607653467, + "width": 117.64155578613281, + "height": 56.7, + "text": "Push notification\n+ carousel card\n(sent immediately)", + "fontSize": 14, + "fontFamily": 6, + "textAlign": "center", + "strokeColor": "#6741d9", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 1, + "roughness": 0, + "opacity": 100, + "version": 67, + "versionNonce": 350238437, + "index": "aV", + "isDeleted": false, + "strokeStyle": "solid", + "angle": 0, + "seed": 1431742859, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "updated": 1772880863050, + "link": null, + "locked": false, + "verticalAlign": "top", + "containerId": null, + "originalText": "Push notification\n+ carousel card\n(sent immediately)", + "autoResize": true, + "lineHeight": 1.35 + }, + { + "id": "out3", + "type": "rectangle", + "x": 520.7137830071108, + "y": 777.8727267795681, + "width": 180, + "height": 60, + "strokeColor": "#6741d9", + "backgroundColor": "#ede9fe", + "fillStyle": "solid", + "strokeWidth": 2, + "roughness": 0, + "opacity": 100, + "roundness": { + "type": 3 + }, + "version": 34, + "versionNonce": 75678347, + "index": "aW", + "isDeleted": false, + "strokeStyle": "solid", + "angle": 0, + "seed": 259997739, + "groupIds": [], + "frameId": null, + "boundElements": [], + "updated": 1772880857262, + "link": null, + "locked": false + }, + { + "id": "out3-text", + "type": "text", + "x": 544.2721411919891, + "y": 783.1589437724573, + "width": 127.30152893066406, + "height": 56.7, + "text": "Push notification\n+ carousel card\n(before trip departs)", + "fontSize": 14, + "fontFamily": 6, + "textAlign": "center", + "strokeColor": "#6741d9", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 1, + "roughness": 0, + "opacity": 100, + "version": 75, + "versionNonce": 995540549, + "index": "aX", + "isDeleted": false, + "strokeStyle": "solid", + "angle": 0, + "seed": 832307915, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "updated": 1772880866853, + "link": null, + "locked": false, + "verticalAlign": "top", + "containerId": null, + "originalText": "Push notification\n+ carousel card\n(before trip departs)", + "autoResize": true, + "lineHeight": 1.35 + }, + { + "id": "arr-out1", + "type": "arrow", + "x": 320.7137830071108, + "y": 777.8727267795681, + "width": 100, + "height": 0, + "points": [ + [ + 0, + 0 + ], + [ + -100, + 0 + ] + ], + "strokeColor": "#6741d9", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 2, + "roughness": 0, + "opacity": 100, + "startArrowhead": null, + "endArrowhead": "arrow", + "lastCommittedPoint": null, + "version": 34, + "versionNonce": 1431690187, + "index": "aY", + "isDeleted": false, + "strokeStyle": "solid", + "angle": 0, + "seed": 71790955, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "updated": 1772880857262, + "link": null, + "locked": false, + "startBinding": null, + "endBinding": null + }, + { + "id": "arr-out2", + "type": "arrow", + "x": 370.7137830071108, + "y": 777.8727267795681, + "width": 0, + "height": 0, + "points": [ + [ + 0, + 0 + ], + [ + 0, + 0 + ] + ], + "strokeColor": "#6741d9", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 2, + "roughness": 0, + "opacity": 100, + "startArrowhead": null, + "endArrowhead": "arrow", + "lastCommittedPoint": null, + "version": 34, + "versionNonce": 626928235, + "index": "aZ", + "isDeleted": false, + "strokeStyle": "solid", + "angle": 0, + "seed": 1489767435, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "updated": 1772880857262, + "link": null, + "locked": false, + "startBinding": null, + "endBinding": null + }, + { + "id": "arr-out3", + "type": "arrow", + "x": 420.7137830071108, + "y": 777.8727267795681, + "width": 100, + "height": 0, + "points": [ + [ + 0, + 0 + ], + [ + 100, + 0 + ] + ], + "strokeColor": "#6741d9", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 2, + "roughness": 0, + "opacity": 100, + "startArrowhead": null, + "endArrowhead": "arrow", + "lastCommittedPoint": null, + "version": 34, + "versionNonce": 2023990539, + "index": "aa", + "isDeleted": false, + "strokeStyle": "solid", + "angle": 0, + "seed": 1931760299, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "updated": 1772880857262, + "link": null, + "locked": false, + "startBinding": null, + "endBinding": null + }, + { + "id": "legend-user", + "type": "rectangle", + "x": 40, + "y": 890, + "width": 16, + "height": 16, + "strokeColor": "#6741d9", + "backgroundColor": "#ede9fe", + "fillStyle": "solid", + "strokeWidth": 1, + "roughness": 0, + "opacity": 100, + "version": 3, + "versionNonce": 838289637, + "index": "ab", + "isDeleted": false, + "strokeStyle": "solid", + "angle": 0, + "seed": 872072523, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "updated": 1772880660469, + "link": null, + "locked": false + }, + { + "id": "legend-user-text", + "type": "text", + "x": 62, + "y": 890, + "width": 93.95111083984375, + "height": 17.55, + "text": "Trigger / Output", + "fontSize": 13, + "fontFamily": 6, + "textAlign": "left", + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 1, + "roughness": 0, + "opacity": 100, + "version": 13, + "versionNonce": 1078387781, + "index": "ac", + "isDeleted": false, + "strokeStyle": "solid", + "angle": 0, + "seed": 44688363, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "updated": 1772880660469, + "link": null, + "locked": false, + "verticalAlign": "top", + "containerId": null, + "originalText": "Trigger / Output", + "autoResize": true, + "lineHeight": 1.35 + }, + { + "id": "legend-carta", + "type": "rectangle", + "x": 200, + "y": 890, + "width": 16, + "height": 16, + "strokeColor": "#0c8599", + "backgroundColor": "#e3fafc", + "fillStyle": "solid", + "strokeWidth": 1, + "roughness": 0, + "opacity": 100, + "version": 3, + "versionNonce": 1288442789, + "index": "ad", + "isDeleted": false, + "strokeStyle": "solid", + "angle": 0, + "seed": 2000432779, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "updated": 1772880660469, + "link": null, + "locked": false + }, + { + "id": "legend-carta-text", + "type": "text", + "x": 222, + "y": 890, + "width": 79.04005432128906, + "height": 17.55, + "text": "Data fetching", + "fontSize": 13, + "fontFamily": 6, + "textAlign": "left", + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 1, + "roughness": 0, + "opacity": 100, + "version": 13, + "versionNonce": 599021317, + "index": "ae", + "isDeleted": false, + "strokeStyle": "solid", + "angle": 0, + "seed": 1147938091, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "updated": 1772880660469, + "link": null, + "locked": false, + "verticalAlign": "top", + "containerId": null, + "originalText": "Data fetching", + "autoResize": true, + "lineHeight": 1.35 + }, + { + "id": "legend-filter", + "type": "rectangle", + "x": 360, + "y": 890, + "width": 16, + "height": 16, + "strokeColor": "#e8590c", + "backgroundColor": "#fff4e6", + "fillStyle": "solid", + "strokeWidth": 1, + "roughness": 0, + "opacity": 100, + "version": 3, + "versionNonce": 796733029, + "index": "af", + "isDeleted": false, + "strokeStyle": "solid", + "angle": 0, + "seed": 1638156235, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "updated": 1772880660469, + "link": null, + "locked": false + }, + { + "id": "legend-filter-text", + "type": "text", + "x": 382, + "y": 890, + "width": 48.80206298828125, + "height": 17.55, + "text": "Filtering", + "fontSize": 13, + "fontFamily": 6, + "textAlign": "left", + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 1, + "roughness": 0, + "opacity": 100, + "version": 13, + "versionNonce": 787749317, + "index": "ag", + "isDeleted": false, + "strokeStyle": "solid", + "angle": 0, + "seed": 1962874475, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "updated": 1772880660469, + "link": null, + "locked": false, + "verticalAlign": "top", + "containerId": null, + "originalText": "Filtering", + "autoResize": true, + "lineHeight": 1.35 + }, + { + "id": "legend-select", + "type": "rectangle", + "x": 480, + "y": 890, + "width": 16, + "height": 16, + "strokeColor": "#1971c2", + "backgroundColor": "#e7f5ff", + "fillStyle": "solid", + "strokeWidth": 1, + "roughness": 0, + "opacity": 100, + "version": 3, + "versionNonce": 724998437, + "index": "ah", + "isDeleted": false, + "strokeStyle": "solid", + "angle": 0, + "seed": 2101809419, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "updated": 1772880660469, + "link": null, + "locked": false + }, + { + "id": "legend-select-text", + "type": "text", + "x": 502, + "y": 890, + "width": 54.379058837890625, + "height": 17.55, + "text": "Selection", + "fontSize": 13, + "fontFamily": 6, + "textAlign": "left", + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 1, + "roughness": 0, + "opacity": 100, + "version": 13, + "versionNonce": 766651525, + "index": "ai", + "isDeleted": false, + "strokeStyle": "solid", + "angle": 0, + "seed": 1006024619, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "updated": 1772880660469, + "link": null, + "locked": false, + "verticalAlign": "top", + "containerId": null, + "originalText": "Selection", + "autoResize": true, + "lineHeight": 1.35 + }, + { + "id": "legend-ext", + "type": "rectangle", + "x": 620, + "y": 890, + "width": 16, + "height": 16, + "strokeColor": "#2f9e44", + "backgroundColor": "#ebfbee", + "fillStyle": "solid", + "strokeWidth": 1, + "roughness": 0, + "opacity": 100, + "version": 3, + "versionNonce": 908350437, + "index": "aj", + "isDeleted": false, + "strokeStyle": "solid", + "angle": 0, + "seed": 1597540939, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "updated": 1772880660469, + "link": null, + "locked": false + }, + { + "id": "legend-ext-text", + "type": "text", + "x": 642, + "y": 890, + "width": 73.67106628417969, + "height": 17.55, + "text": "External API", + "fontSize": 13, + "fontFamily": 6, + "textAlign": "left", + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 1, + "roughness": 0, + "opacity": 100, + "version": 13, + "versionNonce": 1889177413, + "index": "ak", + "isDeleted": false, + "strokeStyle": "solid", + "angle": 0, + "seed": 1810303211, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "updated": 1772880660469, + "link": null, + "locked": false, + "verticalAlign": "top", + "containerId": null, + "originalText": "External API", + "autoResize": true, + "lineHeight": 1.35 + } + ], + "appState": { + "gridSize": 20, + "gridStep": 5, + "gridModeEnabled": false, + "viewBackgroundColor": "#ffffff" + }, + "files": {} +} \ No newline at end of file diff --git a/docs/architecture/regular-trip-detection.excalidraw b/docs/architecture/regular-trip-detection.excalidraw new file mode 100644 index 0000000..3e9d1e3 --- /dev/null +++ b/docs/architecture/regular-trip-detection.excalidraw @@ -0,0 +1,993 @@ +{ + "type": "excalidraw", + "version": 2, + "source": "https://marketplace.visualstudio.com/items?itemName=pomdtr.excalidraw-editor", + "elements": [ + { + "id": "title", + "type": "text", + "x": 100, + "y": 20, + "width": 600, + "height": 32, + "angle": 0, + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 2, + "roughness": 0, + "opacity": 100, + "strokeStyle": "solid", + "seed": 1, + "version": 2, + "versionNonce": 557323847, + "isDeleted": false, + "updated": 1772881204950, + "link": null, + "locked": false, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "text": "Regular Trip Detection & Notification Flow", + "fontSize": 24, + "fontFamily": 6, + "textAlign": "center", + "verticalAlign": "top", + "containerId": null, + "originalText": "Regular Trip Detection & Notification Flow", + "autoResize": true, + "lineHeight": 1.35, + "index": "a0" + }, + { + "id": "cron-box", + "type": "rectangle", + "x": 230, + "y": 80, + "width": 340, + "height": 49, + "angle": 0, + "strokeColor": "#6741d9", + "backgroundColor": "#ede9fe", + "fillStyle": "solid", + "strokeWidth": 2, + "roughness": 0, + "opacity": 100, + "strokeStyle": "solid", + "seed": 10, + "version": 2, + "versionNonce": 1051760041, + "isDeleted": false, + "updated": 1772881204950, + "link": null, + "locked": false, + "groupIds": [], + "frameId": null, + "roundness": { + "type": 3 + }, + "boundElements": [], + "index": "a1" + }, + { + "id": "cron-text", + "type": "text", + "x": 235, + "y": 87, + "width": 330, + "height": 37, + "angle": 0, + "strokeColor": "#6741d9", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 1, + "roughness": 0, + "opacity": 100, + "strokeStyle": "solid", + "seed": 11, + "version": 5, + "versionNonce": 1447267689, + "isDeleted": false, + "updated": 1772881208493, + "link": null, + "locked": false, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "text": "Cron Job\nscheduleNotifyRegularRouteAlternatives()", + "fontSize": 14, + "fontFamily": 6, + "textAlign": "center", + "verticalAlign": "top", + "containerId": null, + "originalText": "Cron Job\nscheduleNotifyRegularRouteAlternatives()", + "autoResize": true, + "lineHeight": 1.35, + "index": "a2" + }, + { + "id": "arr-cron-detect", + "type": "arrow", + "x": 400, + "y": 129, + "width": 0, + "height": 46, + "angle": 0, + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 2, + "roughness": 0, + "opacity": 100, + "strokeStyle": "solid", + "seed": 20, + "version": 2, + "versionNonce": 1430386825, + "isDeleted": false, + "updated": 1772881204950, + "link": null, + "locked": false, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "points": [ + [ + 0, + 0 + ], + [ + 0, + 46 + ] + ], + "startBinding": null, + "endBinding": null, + "lastCommittedPoint": null, + "startArrowhead": null, + "endArrowhead": "arrow", + "index": "a3" + }, + { + "id": "detect-box", + "type": "rectangle", + "x": 130, + "y": 175, + "width": 540, + "height": 49, + "angle": 0, + "strokeColor": "#0c8599", + "backgroundColor": "#e3fafc", + "fillStyle": "solid", + "strokeWidth": 2, + "roughness": 0, + "opacity": 100, + "strokeStyle": "solid", + "seed": 30, + "version": 2, + "versionNonce": 308179079, + "isDeleted": false, + "updated": 1772881204950, + "link": null, + "locked": false, + "groupIds": [], + "frameId": null, + "roundness": { + "type": 3 + }, + "boundElements": [], + "index": "a4" + }, + { + "id": "detect-text", + "type": "text", + "x": 135, + "y": 185, + "width": 530, + "height": 37, + "angle": 0, + "strokeColor": "#0c8599", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 1, + "roughness": 0, + "opacity": 100, + "strokeStyle": "solid", + "seed": 31, + "version": 2, + "versionNonce": 493092713, + "isDeleted": false, + "updated": 1772881204950, + "link": null, + "locked": false, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "text": "RegularTripDetectionService — query CAR trips by day-of-week from DB", + "fontSize": 14, + "fontFamily": 6, + "textAlign": "center", + "verticalAlign": "top", + "containerId": null, + "originalText": "RegularTripDetectionService — query CAR trips by day-of-week from DB", + "autoResize": true, + "lineHeight": 1.35, + "index": "a5" + }, + { + "id": "arr-detect-cluster", + "type": "arrow", + "x": 400, + "y": 224, + "width": 0, + "height": 46, + "angle": 0, + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 2, + "roughness": 0, + "opacity": 100, + "strokeStyle": "solid", + "seed": 40, + "version": 2, + "versionNonce": 1517078439, + "isDeleted": false, + "updated": 1772881204950, + "link": null, + "locked": false, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "points": [ + [ + 0, + 0 + ], + [ + 0, + 46 + ] + ], + "startBinding": null, + "endBinding": null, + "lastCommittedPoint": null, + "startArrowhead": null, + "endArrowhead": "arrow", + "index": "a6" + }, + { + "id": "cluster-box", + "type": "rectangle", + "x": 130, + "y": 270, + "width": 540, + "height": 90, + "angle": 0, + "strokeColor": "#e8590c", + "backgroundColor": "#fff4e6", + "fillStyle": "solid", + "strokeWidth": 2, + "roughness": 0, + "opacity": 100, + "strokeStyle": "solid", + "seed": 50, + "version": 2, + "versionNonce": 1700932169, + "isDeleted": false, + "updated": 1772881204950, + "link": null, + "locked": false, + "groupIds": [], + "frameId": null, + "roundness": { + "type": 3 + }, + "boundElements": [], + "index": "a7" + }, + { + "id": "cluster-text", + "type": "text", + "x": 135, + "y": 278, + "width": 530, + "height": 75, + "angle": 0, + "strokeColor": "#e8590c", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 1, + "roughness": 0, + "opacity": 100, + "strokeStyle": "solid", + "seed": 51, + "version": 2, + "versionNonce": 954415815, + "isDeleted": false, + "updated": 1772881204950, + "link": null, + "locked": false, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "text": "IterativeClusterer — per user\n① init candidate map from all trips\n② shuffle & aggregate: same dayOfWeek + time window + H3 k-ring area\n③ pick best iteration by supporter count ④ deduplicate overlapping detections", + "fontSize": 14, + "fontFamily": 6, + "textAlign": "center", + "verticalAlign": "top", + "containerId": null, + "originalText": "IterativeClusterer — per user\n① init candidate map from all trips\n② shuffle & aggregate: same dayOfWeek + time window + H3 k-ring area\n③ pick best iteration by supporter count ④ deduplicate overlapping detections", + "autoResize": true, + "lineHeight": 1.35, + "index": "a8" + }, + { + "id": "arr-cluster-parallel", + "type": "arrow", + "x": 400, + "y": 360, + "width": 0, + "height": 46, + "angle": 0, + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 2, + "roughness": 0, + "opacity": 100, + "strokeStyle": "solid", + "seed": 60, + "version": 2, + "versionNonce": 639105321, + "isDeleted": false, + "updated": 1772881204950, + "link": null, + "locked": false, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "points": [ + [ + 0, + 0 + ], + [ + 0, + 46 + ] + ], + "startBinding": null, + "endBinding": null, + "lastCommittedPoint": null, + "startArrowhead": null, + "endArrowhead": "arrow", + "index": "a9" + }, + { + "id": "parallel-box", + "type": "rectangle", + "x": 60, + "y": 406, + "width": 680, + "height": 90, + "angle": 0, + "strokeColor": "#2f9e44", + "backgroundColor": "#ebfbee", + "fillStyle": "solid", + "strokeWidth": 2, + "roughness": 0, + "opacity": 100, + "strokeStyle": "dashed", + "seed": 70, + "version": 2, + "versionNonce": 1650346471, + "isDeleted": false, + "updated": 1772881204950, + "link": null, + "locked": false, + "groupIds": [], + "frameId": null, + "roundness": { + "type": 3 + }, + "boundElements": [], + "index": "aA" + }, + { + "id": "parallel-text", + "type": "text", + "x": 65, + "y": 413, + "width": 670, + "height": 75, + "angle": 0, + "strokeColor": "#2f9e44", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 1, + "roughness": 0, + "opacity": 100, + "strokeStyle": "solid", + "seed": 71, + "version": 2, + "versionNonce": 821095433, + "isDeleted": false, + "updated": 1772881204950, + "link": null, + "locked": false, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "text": "Per user in parallel (thread pool, parallelism = 10)\nFetch routing prefs → build request (H3 → LatLng, avg arrival time)\n→ AlternativeRoutingService: CARTA API → filter travel time / weather / transit\n→ if alternative found: earliestTimeToSend = departureWindowStart − 15 min", + "fontSize": 14, + "fontFamily": 6, + "textAlign": "center", + "verticalAlign": "top", + "containerId": null, + "originalText": "Per user in parallel (thread pool, parallelism = 10)\nFetch routing prefs → build request (H3 → LatLng, avg arrival time)\n→ AlternativeRoutingService: CARTA API → filter travel time / weather / transit\n→ if alternative found: earliestTimeToSend = departureWindowStart − 15 min", + "autoResize": true, + "lineHeight": 1.35, + "index": "aB" + }, + { + "id": "arr-par-left", + "type": "arrow", + "x": 280, + "y": 496, + "width": 0, + "height": 44, + "angle": 0, + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 2, + "roughness": 0, + "opacity": 100, + "strokeStyle": "solid", + "seed": 80, + "version": 2, + "versionNonce": 1139438855, + "isDeleted": false, + "updated": 1772881204950, + "link": null, + "locked": false, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "points": [ + [ + 0, + 0 + ], + [ + 0, + 44 + ] + ], + "startBinding": null, + "endBinding": null, + "lastCommittedPoint": null, + "startArrowhead": null, + "endArrowhead": "arrow", + "index": "aC" + }, + { + "id": "arr-par-right", + "type": "arrow", + "x": 520, + "y": 496, + "width": 0, + "height": 44, + "angle": 0, + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 2, + "roughness": 0, + "opacity": 100, + "strokeStyle": "solid", + "seed": 81, + "version": 2, + "versionNonce": 501777129, + "isDeleted": false, + "updated": 1772881204950, + "link": null, + "locked": false, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "points": [ + [ + 0, + 0 + ], + [ + 0, + 44 + ] + ], + "startBinding": null, + "endBinding": null, + "lastCommittedPoint": null, + "startArrowhead": null, + "endArrowhead": "arrow", + "index": "aD" + }, + { + "id": "carrousel-box", + "type": "rectangle", + "x": 60, + "y": 540, + "width": 310, + "height": 49, + "angle": 0, + "strokeColor": "#1971c2", + "backgroundColor": "#e7f5ff", + "fillStyle": "solid", + "strokeWidth": 2, + "roughness": 0, + "opacity": 100, + "strokeStyle": "solid", + "seed": 90, + "version": 2, + "versionNonce": 1963211815, + "isDeleted": false, + "updated": 1772881204950, + "link": null, + "locked": false, + "groupIds": [], + "frameId": null, + "roundness": { + "type": 3 + }, + "boundElements": [], + "index": "aE" + }, + { + "id": "carrousel-text", + "type": "text", + "x": 65, + "y": 550, + "width": 300, + "height": 37, + "angle": 0, + "strokeColor": "#1971c2", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 1, + "roughness": 0, + "opacity": 100, + "strokeStyle": "solid", + "seed": 91, + "version": 2, + "versionNonce": 2039102921, + "isDeleted": false, + "updated": 1772881204950, + "link": null, + "locked": false, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "text": "Save CarrouselCandidates (DB)", + "fontSize": 14, + "fontFamily": 6, + "textAlign": "center", + "verticalAlign": "top", + "containerId": null, + "originalText": "Save CarrouselCandidates (DB)", + "autoResize": true, + "lineHeight": 1.35, + "index": "aF" + }, + { + "id": "notif-box", + "type": "rectangle", + "x": 430, + "y": 540, + "width": 310, + "height": 49, + "angle": 0, + "strokeColor": "#1971c2", + "backgroundColor": "#e7f5ff", + "fillStyle": "solid", + "strokeWidth": 2, + "roughness": 0, + "opacity": 100, + "strokeStyle": "solid", + "seed": 92, + "version": 2, + "versionNonce": 1771577159, + "isDeleted": false, + "updated": 1772881204950, + "link": null, + "locked": false, + "groupIds": [], + "frameId": null, + "roundness": { + "type": 3 + }, + "boundElements": [], + "index": "aG" + }, + { + "id": "notif-text", + "type": "text", + "x": 435, + "y": 550, + "width": 300, + "height": 37, + "angle": 0, + "strokeColor": "#1971c2", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 1, + "roughness": 0, + "opacity": 100, + "strokeStyle": "solid", + "seed": 93, + "version": 2, + "versionNonce": 854695081, + "isDeleted": false, + "updated": 1772881204950, + "link": null, + "locked": false, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "text": "Schedule Notifications PENDING (DB)", + "fontSize": 14, + "fontFamily": 6, + "textAlign": "center", + "verticalAlign": "top", + "containerId": null, + "originalText": "Schedule Notifications PENDING (DB)", + "autoResize": true, + "lineHeight": 1.35, + "index": "aH" + }, + { + "id": "legend-trigger", + "type": "rectangle", + "x": 60, + "y": 630, + "width": 16, + "height": 16, + "angle": 0, + "strokeColor": "#6741d9", + "backgroundColor": "#ede9fe", + "fillStyle": "solid", + "strokeWidth": 1, + "roughness": 0, + "opacity": 100, + "strokeStyle": "solid", + "seed": 100, + "version": 2, + "versionNonce": 1677893223, + "isDeleted": false, + "updated": 1772881204950, + "link": null, + "locked": false, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "index": "aI" + }, + { + "id": "legend-trigger-text", + "type": "text", + "x": 82, + "y": 630, + "width": 80, + "height": 18, + "angle": 0, + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 1, + "roughness": 0, + "opacity": 100, + "strokeStyle": "solid", + "seed": 101, + "version": 2, + "versionNonce": 1237983113, + "isDeleted": false, + "updated": 1772881204950, + "link": null, + "locked": false, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "text": "Trigger", + "fontSize": 13, + "fontFamily": 6, + "textAlign": "left", + "verticalAlign": "top", + "containerId": null, + "originalText": "Trigger", + "autoResize": true, + "lineHeight": 1.35, + "index": "aJ" + }, + { + "id": "legend-data", + "type": "rectangle", + "x": 200, + "y": 630, + "width": 16, + "height": 16, + "angle": 0, + "strokeColor": "#0c8599", + "backgroundColor": "#e3fafc", + "fillStyle": "solid", + "strokeWidth": 1, + "roughness": 0, + "opacity": 100, + "strokeStyle": "solid", + "seed": 102, + "version": 2, + "versionNonce": 655374727, + "isDeleted": false, + "updated": 1772881204950, + "link": null, + "locked": false, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "index": "aK" + }, + { + "id": "legend-data-text", + "type": "text", + "x": 222, + "y": 630, + "width": 100, + "height": 18, + "angle": 0, + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 1, + "roughness": 0, + "opacity": 100, + "strokeStyle": "solid", + "seed": 103, + "version": 2, + "versionNonce": 1011828329, + "isDeleted": false, + "updated": 1772881204950, + "link": null, + "locked": false, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "text": "Data fetching", + "fontSize": 13, + "fontFamily": 6, + "textAlign": "left", + "verticalAlign": "top", + "containerId": null, + "originalText": "Data fetching", + "autoResize": true, + "lineHeight": 1.35, + "index": "aL" + }, + { + "id": "legend-algo", + "type": "rectangle", + "x": 360, + "y": 630, + "width": 16, + "height": 16, + "angle": 0, + "strokeColor": "#e8590c", + "backgroundColor": "#fff4e6", + "fillStyle": "solid", + "strokeWidth": 1, + "roughness": 0, + "opacity": 100, + "strokeStyle": "solid", + "seed": 104, + "version": 2, + "versionNonce": 1744662695, + "isDeleted": false, + "updated": 1772881204950, + "link": null, + "locked": false, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "index": "aM" + }, + { + "id": "legend-algo-text", + "type": "text", + "x": 382, + "y": 630, + "width": 100, + "height": 18, + "angle": 0, + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 1, + "roughness": 0, + "opacity": 100, + "strokeStyle": "solid", + "seed": 105, + "version": 2, + "versionNonce": 894210377, + "isDeleted": false, + "updated": 1772881204950, + "link": null, + "locked": false, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "text": "Algorithm", + "fontSize": 13, + "fontFamily": 6, + "textAlign": "left", + "verticalAlign": "top", + "containerId": null, + "originalText": "Algorithm", + "autoResize": true, + "lineHeight": 1.35, + "index": "aN" + }, + { + "id": "legend-parallel", + "type": "rectangle", + "x": 510, + "y": 630, + "width": 16, + "height": 16, + "angle": 0, + "strokeColor": "#2f9e44", + "backgroundColor": "#ebfbee", + "fillStyle": "solid", + "strokeWidth": 1, + "roughness": 0, + "opacity": 100, + "strokeStyle": "dashed", + "seed": 106, + "version": 2, + "versionNonce": 7783367, + "isDeleted": false, + "updated": 1772881204950, + "link": null, + "locked": false, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "index": "aO" + }, + { + "id": "legend-parallel-text", + "type": "text", + "x": 532, + "y": 630, + "width": 140, + "height": 18, + "angle": 0, + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 1, + "roughness": 0, + "opacity": 100, + "strokeStyle": "solid", + "seed": 107, + "version": 2, + "versionNonce": 2048753705, + "isDeleted": false, + "updated": 1772881204950, + "link": null, + "locked": false, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "text": "Parallel processing", + "fontSize": 13, + "fontFamily": 6, + "textAlign": "left", + "verticalAlign": "top", + "containerId": null, + "originalText": "Parallel processing", + "autoResize": true, + "lineHeight": 1.35, + "index": "aP" + }, + { + "id": "legend-output", + "type": "rectangle", + "x": 690, + "y": 630, + "width": 16, + "height": 16, + "angle": 0, + "strokeColor": "#1971c2", + "backgroundColor": "#e7f5ff", + "fillStyle": "solid", + "strokeWidth": 1, + "roughness": 0, + "opacity": 100, + "strokeStyle": "solid", + "seed": 108, + "version": 2, + "versionNonce": 1620620007, + "isDeleted": false, + "updated": 1772881204950, + "link": null, + "locked": false, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "index": "aQ" + }, + { + "id": "legend-output-text", + "type": "text", + "x": 712, + "y": 630, + "width": 60, + "height": 18, + "angle": 0, + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 1, + "roughness": 0, + "opacity": 100, + "strokeStyle": "solid", + "seed": 109, + "version": 2, + "versionNonce": 414028553, + "isDeleted": false, + "updated": 1772881204950, + "link": null, + "locked": false, + "groupIds": [], + "frameId": null, + "roundness": null, + "boundElements": [], + "text": "Output", + "fontSize": 13, + "fontFamily": 6, + "textAlign": "left", + "verticalAlign": "top", + "containerId": null, + "originalText": "Output", + "autoResize": true, + "lineHeight": 1.35, + "index": "aR" + } + ], + "appState": { + "gridSize": 20, + "gridStep": 5, + "gridModeEnabled": false, + "viewBackgroundColor": "#ffffff" + }, + "files": {} +} \ No newline at end of file