From 4667a12364ebd04899cec7d60ff2734af64fcfb8 Mon Sep 17 00:00:00 2001 From: Christoph Lingg Date: Wed, 11 Sep 2024 10:15:23 +0200 Subject: [PATCH] Fix example in readme It is a typo and now works as in the live example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ffcd904..2818996 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ with open("mazowieckie-latest.osm.pbf", "rb") as f: start_node = graph.find_nearest_node((52.23201, 21.00737)) end_node = graph.find_nearest_node((52.24158, 21.02807)) -route = pyroutelib3.find_route_without_turn_around(graph, start_node, end_node) +route = pyroutelib3.find_route_without_turn_around(graph, start_node.id, end_node.id) route_lat_lons = [graph.get_node(node).position for node in route] ```