From 3953c65a65af925aad95d2793e03d561a8e10329 Mon Sep 17 00:00:00 2001 From: FuelBoard Contributor Date: Tue, 11 Aug 2026 19:18:27 +0100 Subject: [PATCH] Show distances in miles (app + widget) to match the miles filter --- FuelBoard/ContentView.swift | 2 +- FuelBoardWidgets/FuelPriceWidget.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/FuelBoard/ContentView.swift b/FuelBoard/ContentView.swift index 8de8399..c0c070d 100644 --- a/FuelBoard/ContentView.swift +++ b/FuelBoard/ContentView.swift @@ -287,7 +287,7 @@ struct StationRow: View { .lineLimit(1) .truncationMode(.tail) if let location { - Text(String(format: "%.1f km", station.distanceKM(to: location.lat, lng2: location.lng))) + Text(String(format: "%.1f mi", station.distanceKM(to: location.lat, lng2: location.lng) * 0.621371)) .font(.caption2) .foregroundStyle(.secondary) .monospacedDigit() diff --git a/FuelBoardWidgets/FuelPriceWidget.swift b/FuelBoardWidgets/FuelPriceWidget.swift index 900ea77..8c26d88 100644 --- a/FuelBoardWidgets/FuelPriceWidget.swift +++ b/FuelBoardWidgets/FuelPriceWidget.swift @@ -158,7 +158,7 @@ struct FuelPriceWidgetView: View { .foregroundStyle(.green) } if let location = entry.location { - Text(String(format: "%.1f km away", station.distanceKM(to: location.lat, lng2: location.lng))) + Text(String(format: "%.1f mi away", station.distanceKM(to: location.lat, lng2: location.lng) * 0.621371)) .font(.caption2) .foregroundStyle(.secondary) } else {