You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default setting is to match edges. The path_pred_onlynodes shows the nodes, in this case 2 because and edge is between two nodes. You can also try path_pred to see the edges more explicitly.
For each match you can ask for the location and where this point is on the edge (this is also used for the plot function). For the first match like in this case you could check:
edge = matcher.lattice_best[0].edge_m
if edge.ti < 0.5:
print(f"First node is {edge.l1}")
else:
print(f"First node is {edge.l2}")
Starting from the closest node on the first edge makes sense, so in the master branch the path_pred_onlynodes function has been updated to use this by default.
Hello,
Here's the example code
When I run this code I get 2 nodes while I only had one coordinate.
The nodes are
['7737876085', '6452768049']
Can you explain this please ?
Thanks a lot
The text was updated successfully, but these errors were encountered: