Fixed node properties
This commit is contained in:
@@ -33,11 +33,13 @@ def get_all_junctions(name: str) -> list[dict[str, Any]]:
|
||||
result = []
|
||||
for row in rows:
|
||||
d = {}
|
||||
d['id'] = str(row['id'])
|
||||
d['x'] = float(row['x'])
|
||||
d['y'] = float(row['y'])
|
||||
id = str(row['id'])
|
||||
xy = get_node_coord(name, id)
|
||||
d['id'] = id
|
||||
d['x'] = float(xy['x'])
|
||||
d['y'] = float(xy['y'])
|
||||
d['elevation'] = float(row['elevation'])
|
||||
d['links'] = get_node_links(name, row['id'])
|
||||
d['links'] = get_node_links(name, id)
|
||||
result.append(d)
|
||||
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user