Skip to content

Commit 2a1b8ef

Browse files
committed
update OSRM node
1 parent 11225e5 commit 2a1b8ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

knime_extension/src/nodes/spatialnetwork.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ def update_part(self, model: _OSRMResultModel, df, ns, ne):
606606
if data["code"] == "Ok":
607607
if model.append_distance():
608608
dfr = pd.DataFrame(data["routes"][0]["legs"])[
609-
[_COL_DURATION, _COL_DISTANCE]
609+
["duration", "distance"]
610610
].iloc[::2]
611611
# convert seconds to minutes
612612
dfr.duration /= 60

0 commit comments

Comments
 (0)