map now working
This commit is contained in:
@@ -7,7 +7,7 @@ from pathlib import Path
|
||||
|
||||
from bincio.extract.metrics import ComputedMetrics
|
||||
from bincio.extract.models import LapData, ParsedActivity
|
||||
from bincio.extract.simplify import build_geojson
|
||||
from bincio.extract.simplify import build_geojson, preview_coords
|
||||
from bincio.extract.timeseries import build_timeseries
|
||||
|
||||
|
||||
@@ -119,6 +119,8 @@ def build_summary(
|
||||
"privacy": privacy,
|
||||
"detail_url": f"activities/{activity_id}.json",
|
||||
"track_url": f"activities/{activity_id}.geojson" if has_gps else None,
|
||||
# Small track preview for card thumbnails — no separate fetch needed
|
||||
"preview_coords": preview_coords(activity.points) if has_gps else None,
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user