Add method to get nodes in extent
This commit is contained in:
6
main.py
6
main.py
@@ -1424,6 +1424,12 @@ async def fastapi_get_major_node_coords(network: str, diameter: int) -> list[str
|
||||
result.append(f"{node_id}:{coord['type']}:{coord['x']}:{coord['y']}")
|
||||
return result
|
||||
|
||||
# DingZQ, 2025-01-03, get network in extent
|
||||
@app.get("/getnetworkinextent/")
|
||||
async def fastapi_get_network_in_extent(network: str, x1: float, y1: float, x2: float, y2: float) -> dict[str, Any] | None:
|
||||
# TODO
|
||||
pass
|
||||
|
||||
# DingZQ, 2024-12-08, get all links' start and end node
|
||||
# link_id:link_type:node_id1:node_id2
|
||||
@app.get("/getnetworklinknodes/")
|
||||
|
||||
Reference in New Issue
Block a user