added duration
All checks were successful
Build and push docker image / Build (pull_request) Successful in 1m30s
All checks were successful
Build and push docker image / Build (pull_request) Successful in 1m30s
This commit is contained in:
@@ -291,6 +291,7 @@ class LandmarkManager:
|
||||
n_tags = len(elem.tags().keys()) # Add number of tags
|
||||
score = n_tags**self.tag_exponent # Add score
|
||||
|
||||
|
||||
# remove specific tags
|
||||
skip = False
|
||||
for tag in elem.tags().keys():
|
||||
@@ -336,6 +337,14 @@ class LandmarkManager:
|
||||
score = score_function(score)
|
||||
if "place_of_worship" in elem.tags().values() :
|
||||
score = int(score*self.church_coeff)
|
||||
duration = 20
|
||||
|
||||
elif "museum" in elem.tags().values() :
|
||||
score = int(score*self.church_coeff)
|
||||
duration = 60
|
||||
|
||||
else :
|
||||
duration = 30
|
||||
|
||||
# Generate the landmark and append it to the list
|
||||
landmark = Landmark(
|
||||
@@ -346,7 +355,8 @@ class LandmarkManager:
|
||||
osm_id=osm_id,
|
||||
attractiveness=score,
|
||||
must_do=False,
|
||||
n_tags=int(n_tags)
|
||||
n_tags=int(n_tags),
|
||||
duration = duration
|
||||
)
|
||||
return_list.append(landmark)
|
||||
|
||||
|
Reference in New Issue
Block a user