diff --git a/backend/src/structs/landmark.py b/backend/src/structs/landmark.py index 7e0cc97..84b187b 100644 --- a/backend/src/structs/landmark.py +++ b/backend/src/structs/landmark.py @@ -37,5 +37,8 @@ class Landmark(BaseModel) : def __str__(self) -> str: time_to_next_str = f", time_to_next={self.time_to_reach_next}" if self.time_to_reach_next else "" - return f'Landmark({self.type}): [{self.name} @{self.location}, score={self.attractiveness}{time_to_next_str}]' + is_secondary_str = f", secondary" if self.is_secondary else "" + type_str = '(' + self.type + ')' + if self.type in ["start", "finish", "nature", "shopping"] : type_str += '\t ' + return f'Landmark{type_str}: [{self.name} @{self.location}, score={self.attractiveness}{time_to_next_str}{is_secondary_str}]' diff --git a/backend/src/tester.py b/backend/src/tester.py index cc4118c..8144101 100644 --- a/backend/src/tester.py +++ b/backend/src/tester.py @@ -72,7 +72,7 @@ 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((47.377859, 8.540585))) # Zurich HB # test(tuple((45.758217, 4.831814))) # Lyon Bellecour -# test(tuple((48.5848435, 7.7332974))) # Strasbourg Gare +test(tuple((48.5848435, 7.7332974))) # Strasbourg Gare # test(tuple((48.2067858, 16.3692340))) # Vienne