aboutsummaryrefslogtreecommitdiff
path: root/ride/cli.go
diff options
context:
space:
mode:
Diffstat (limited to 'ride/cli.go')
-rw-r--r--ride/cli.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/ride/cli.go b/ride/cli.go
index a460260..c148b38 100644
--- a/ride/cli.go
+++ b/ride/cli.go
@@ -209,6 +209,12 @@ func parseStoredRide(item StoredRide) (Ride, error) {
return ParseFile(GPXRideParser{}, item.GPXPath)
}
+// ParseStoredRide parses a stored ride's route files, preferring FIT and
+// falling back to GPX when FIT parsing fails or is missing.
+func ParseStoredRide(item StoredRide) (Ride, error) {
+ return parseStoredRide(item)
+}
+
type elevationAnalyseResult struct {
RideID int64 `json:"rideId"`
Name string `json:"name"`