fix: add cable_id to API response for cable highlighting

This commit is contained in:
rayd1o
2026-03-13 16:23:45 +08:00
parent 4e487b315a
commit 02991730e5
5 changed files with 2 additions and 3 deletions

View File

@@ -66,6 +66,7 @@ def convert_cable_to_geojson(records: List[CollectedData]) -> Dict[str, Any]:
"geometry": {"type": "MultiLineString", "coordinates": all_lines},
"properties": {
"id": record.id,
"cable_id": record.name,
"source_id": record.source_id,
"Name": record.name,
"name": record.name,