updated refiner
Some checks failed
Build and push docker image / Build (pull_request) Successful in 3m17s
Build and release APK / Build APK (pull_request) Has been cancelled
Build web / Build Web (pull_request) Has been cancelled

This commit is contained in:
2024-06-26 10:52:24 +02:00
parent 8d068c80a7
commit fdcaaf8c16
6 changed files with 265 additions and 68 deletions

View File

@@ -84,6 +84,10 @@ def test4(coordinates: tuple[float, float]) -> List[Landmark]:
# Create start and finish
start = Landmark(name='start', type=LandmarkType(landmark_type='start'), location=coordinates, osm_type='start', osm_id=0, attractiveness=0, must_do=True, n_tags = 0)
finish = Landmark(name='finish', type=LandmarkType(landmark_type='finish'), location=coordinates, osm_type='finish', osm_id=0, attractiveness=0, must_do=True, n_tags = 0)
#finish = Landmark(name='finish', type=LandmarkType(landmark_type='finish'), location=(48.8777055, 2.3640967), osm_type='finish', osm_id=0, attractiveness=0, must_do=True, n_tags = 0)
#start = Landmark(name='start', type=LandmarkType(landmark_type='start'), location=(48.847132, 2.312359), osm_type='start', osm_id=0, attractiveness=0, must_do=True, n_tags = 0)
#finish = Landmark(name='finish', type=LandmarkType(landmark_type='finish'), location=(48.843185, 2.344533), osm_type='finish', osm_id=0, attractiveness=0, must_do=True, n_tags = 0)
#finish = Landmark(name='finish', type=LandmarkType(landmark_type='finish'), location=(48.847132, 2.312359), osm_type='finish', osm_id=0, attractiveness=0, must_do=True, n_tags = 0)
# Generate the landmarks from the start location
landmarks, landmarks_short = generate_landmarks(preferences=preferences, coordinates=start.location)
@@ -94,7 +98,7 @@ def test4(coordinates: tuple[float, float]) -> List[Landmark]:
landmarks_short.append(finish)
# TODO use these parameters in another way
max_walking_time = 4 # hours
max_walking_time = 2 # hours
detour = 30 # minutes
# First stage optimization
@@ -107,5 +111,6 @@ def test4(coordinates: tuple[float, float]) -> List[Landmark]:
#test4(tuple((48.8344400, 2.3220540))) # Café Chez César
test4(tuple((48.8375946, 2.2949904))) # Point random
#test4(tuple((48.8375946, 2.2949904))) # Point random
test4(tuple((47.377859, 8.540585))) # Zurich HB
#test3('Vienna, Austria')