set start and finish as primary
All checks were successful
Build and push docker image / Build (pull_request) Successful in 1m34s
Build and release APK / Build APK (pull_request) Successful in 5m3s

This commit is contained in:
Helldragon67 2024-09-10 17:11:36 +02:00
parent 055089bf76
commit 797db5c1da
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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