first homemade OSM
Some checks failed
Build and deploy the backend to staging / Build and push image (pull_request) Successful in 2m50s
Run linting on the backend code / Build (pull_request) Successful in 26s
Run testing on the backend code / Build (pull_request) Failing after 1m44s
Build and deploy the backend to staging / Deploy to staging (pull_request) Successful in 24s
Some checks failed
Build and deploy the backend to staging / Build and push image (pull_request) Successful in 2m50s
Run linting on the backend code / Build (pull_request) Successful in 26s
Run testing on the backend code / Build (pull_request) Failing after 1m44s
Build and deploy the backend to staging / Deploy to staging (pull_request) Successful in 24s
This commit is contained in:
@@ -45,8 +45,11 @@ class Landmark(BaseModel) :
|
||||
osm_id : int
|
||||
attractiveness : int
|
||||
n_tags : int
|
||||
|
||||
# Optional properties to gather more information.
|
||||
image_url : Optional[str] = None
|
||||
website_url : Optional[str] = None
|
||||
wiki_url : Optional[str] = None
|
||||
description : Optional[str] = None # TODO future
|
||||
duration : Optional[int] = 0
|
||||
name_en : Optional[str] = None
|
||||
@@ -62,6 +65,10 @@ class Landmark(BaseModel) :
|
||||
time_to_reach_next : Optional[int] = 0
|
||||
next_uuid : Optional[UUID] = None
|
||||
|
||||
# More properties to define the score
|
||||
is_viewpoint : Optional[bool] = False
|
||||
is_place_of_worship : Optional[bool] = False
|
||||
|
||||
def __str__(self) -> str:
|
||||
"""
|
||||
String representation of the Landmark object.
|
||||
|
@@ -1,7 +1,7 @@
|
||||
"""Linked and ordered list of Landmarks that represents the visiting order."""
|
||||
|
||||
from .landmark import Landmark
|
||||
from ..utils.get_time_separation import get_time
|
||||
from ..utils.get_time_distance import get_time
|
||||
|
||||
class LinkedLandmarks:
|
||||
"""
|
||||
|
Reference in New Issue
Block a user