better time management for optimizer

This commit is contained in:
2024-08-12 18:52:01 +02:00
parent a1fcc8d23b
commit 003b8d0f9c
6 changed files with 31 additions and 16 deletions

View File

@@ -343,8 +343,14 @@ class LandmarkManager:
score = int(score*self.church_coeff)
duration = 60
else :
elif "fountain" in elem.tags().values() :
duration = 5
elif "park" in elem.tags().values() :
duration = 30
else :
duration = 15
# Generate the landmark and append it to the list
landmark = Landmark(