better landmarks log
All checks were successful
Build and push docker image / Build (pull_request) Successful in 2m5s
Build and release APK / Build APK (pull_request) Successful in 4m46s

This commit is contained in:
Helldragon67 2024-09-10 17:07:26 +02:00
parent 3475990e5f
commit 055089bf76
2 changed files with 6 additions and 3 deletions

View File

@ -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}]'

View File

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