set start and finish as primary
This commit is contained in:
parent
055089bf76
commit
797db5c1da
@ -52,7 +52,7 @@ class LinkedLandmarks:
|
||||
|
||||
# Update 'is_secondary' for landmarks with attractiveness below the threshold score
|
||||
for landmark in self._landmarks:
|
||||
if landmark.attractiveness < threshold_score:
|
||||
if landmark.attractiveness < threshold_score and landmark.type not in ["start", "finish"]:
|
||||
landmark.is_secondary = True
|
||||
|
||||
|
||||
|
@ -24,7 +24,7 @@ def test(start_coords: tuple[float, float], finish_coords: tuple[float, float] =
|
||||
nature=Preference(type='nature', score = 5),
|
||||
shopping=Preference(type='shopping', score = 5),
|
||||
|
||||
max_time_minute=120,
|
||||
max_time_minute=180,
|
||||
detour_tolerance_minute=10
|
||||
)
|
||||
|
||||
@ -73,6 +73,6 @@ def test(start_coords: tuple[float, float], finish_coords: tuple[float, float] =
|
||||
# test(tuple((48.8344400, 2.3220540))) # Café Chez César
|
||||
# test(tuple((48.8375946, 2.2949904))) # Point random
|
||||
# test(tuple((47.377859, 8.540585))) # Zurich HB
|
||||
# test(tuple((45.758217, 4.831814))) # Lyon Bellecour
|
||||
test(tuple((48.5848435, 7.7332974))) # Strasbourg Gare
|
||||
test(tuple((45.758217, 4.831814))) # Lyon Bellecour
|
||||
# test(tuple((48.5848435, 7.7332974))) # Strasbourg Gare
|
||||
# test(tuple((48.2067858, 16.3692340))) # Vienne
|
||||
|
Loading…
x
Reference in New Issue
Block a user