lokesh341 commited on
Commit
05c58db
·
verified ·
1 Parent(s): 900b7ef

Update services/map_service.py

Browse files
Files changed (1) hide show
  1. services/map_service.py +1 -1
services/map_service.py CHANGED
@@ -20,7 +20,7 @@ def generate_map_html(gps_coordinates, items):
20
 
21
  # Add markers for cracks and potholes
22
  for coord, item in zip(gps_coordinates[-len(items):], items):
23
- color = 'red' if item['type'] == 'crack' else 'green'
24
  severity = item.get('severity', 'Unknown')
25
  confidence = item.get('confidence', 0.0)
26
  obj_id = item.get('id', 'N/A')
 
20
 
21
  # Add markers for cracks and potholes
22
  for coord, item in zip(gps_coordinates[-len(items):], items):
23
+ color = 'red' if item['type'] == 'crack' else 'blue' # Updated color for potholes
24
  severity = item.get('severity', 'Unknown')
25
  confidence = item.get('confidence', 0.0)
26
  obj_id = item.get('id', 'N/A')