Allow specifing a weight for routing that is independent of duration
This commit is contained in:
committed by
Patrick Niklaus
parent
e463733138
commit
279f8aabfb
@@ -42,6 +42,7 @@ BOOST_AUTO_TEST_CASE(trim_short_segments)
|
||||
"",
|
||||
0.2,
|
||||
1.9076601161280742,
|
||||
0.2,
|
||||
TRAVEL_MODE_DRIVING,
|
||||
{{FloatLongitude{-73.981492}, FloatLatitude{40.768258}},
|
||||
329,
|
||||
@@ -61,6 +62,7 @@ BOOST_AUTO_TEST_CASE(trim_short_segments)
|
||||
"",
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
TRAVEL_MODE_DRIVING,
|
||||
{{FloatLongitude{-73.981495}, FloatLatitude{40.768275}},
|
||||
0,
|
||||
@@ -79,7 +81,7 @@ BOOST_AUTO_TEST_CASE(trim_short_segments)
|
||||
geometry.segment_offsets = {0, 2};
|
||||
geometry.segment_distances = {1.9076601161280742};
|
||||
geometry.osm_node_ids = {OSMNodeID{0}, OSMNodeID{1}, OSMNodeID{2}};
|
||||
geometry.annotations = {{1.9076601161280742, 0.2, 0}, {0, 0, 0}};
|
||||
geometry.annotations = {{1.9076601161280742, 0.2, 0.2, 0}, {0, 0, 0, 0}};
|
||||
|
||||
trimShortSegments(steps, geometry);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user