add excalidraw docs
LocationBasedServices/sumoc-backend/pipeline/head This commit looks good

This commit is contained in:
2026-03-07 12:01:55 +01:00
parent 7862029773
commit 72bbb48fa3
2 changed files with 2790 additions and 0 deletions
File diff suppressed because it is too large Load Diff
@@ -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": {}
}