Map the start and end of trails with no track, with the notice beside it

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Fable 5.2 committed 2026-11-18 16:14:34 -07:00
1 parent a37f375101
commit 3709a9af5f
8 files changed
+309 -78

No files matched your search

+1 -1
View File
@@ -214,7 +214,7 @@ def _extent(rec):
the one point on file. Coordinates come from the record or its track, never made up."""
box = rec.get("derived", {}).get("bbox") or rec.get("derived", {}).get("map_bbox")
if not box:
pts = hike.sketch_points(rec)
pts = [p for p in (hike.start_point(rec), hike.end_point(rec)) if p] # the record's own points, map or no map
if len(pts) == 1:
return {"@type": "GeoCoordinates", "longitude": pts[0][0], "latitude": pts[0][1]}
if pts: