We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0bd4742 commit 15404e9Copy full SHA for 15404e9
yaramo/edge.py
@@ -201,8 +201,8 @@ def get_coordinates_on_edge_by_distance_from_start_node(
201
x1, y1 = cur_geo_node.x, cur_geo_node.y
202
x2, y2 = next_geo_node.x, next_geo_node.y
203
factor = remaining_distance / distance_between_nodes
204
- x = x1 + (factor * (x2 - x1))
205
- y = y1 + (factor * (y2 - y1))
+ x = float(x1) + (factor * float(x2 - x1))
+ y = float(y1) + (factor * float(y2 - y1))
206
return x, y
207
208
remaining_distance = remaining_distance - distance_between_nodes
0 commit comments