Add API get network coords

This commit is contained in:
DingZQ
2024-12-08 18:08:52 +08:00
parent 8d6d7b5c59
commit 73598b7b38
2 changed files with 12 additions and 0 deletions

View File

@@ -1391,6 +1391,10 @@ async def fastapi_set_option_properties(network: str, req: Request) -> ChangeSet
async def fastapi_get_node_coord(network: str, node: str) -> dict[str, float] | None:
return get_node_coord(network, node)
@app.get("/getnetworkcoords/")
async def fastapi_get_network_coords(network: str) -> dict[str, dict[str, float]] | None:
return get_network_coords(network)
############################################################
# vertex 25.[VERTICES]
############################################################