Corin1998 commited on
Commit
df5774e
·
verified ·
1 Parent(s): 29199e3

Update services/planner.py

Browse files
Files changed (1) hide show
  1. services/planner.py +2 -0
services/planner.py CHANGED
@@ -39,6 +39,7 @@ def score_poi(item: dict, interests: List[str], weather: dict) -> float:
39
  s += float(item.get("score", 0.0)) * 0.1
40
  return s
41
 
 
42
  def pick_candidates(rag, center: Tuple[float, float], query: str,
43
  interests: List[str], weather: dict, k: int = 10,
44
  radius_km: float = 20.0) -> List[dict]:
@@ -141,6 +142,7 @@ def make_itinerary(center: Tuple[float, float],
141
  map_html = _make_leaflet(nodes, route)
142
  return schedule, map_html, order, durations, distances
143
 
 
144
  def _make_leaflet(nodes: List[dict], route: dict | None) -> str:
145
  center_lat = nodes[0]["lat"]
146
  center_lon = nodes[0]["lon"]
 
39
  s += float(item.get("score", 0.0)) * 0.1
40
  return s
41
 
42
+
43
  def pick_candidates(rag, center: Tuple[float, float], query: str,
44
  interests: List[str], weather: dict, k: int = 10,
45
  radius_km: float = 20.0) -> List[dict]:
 
142
  map_html = _make_leaflet(nodes, route)
143
  return schedule, map_html, order, durations, distances
144
 
145
+
146
  def _make_leaflet(nodes: List[dict], route: dict | None) -> str:
147
  center_lat = nodes[0]["lat"]
148
  center_lon = nodes[0]["lon"]