Fix build: return RouteSpeedContext, not [], in fetchRouteSpeedContext

Leftover empty-array return from the pre-refactor signature caused
'cannot convert [Any] to RouteSpeedContext' at MapSelectionView.swift:338.
This commit is contained in:
sandbox 2026-07-14 05:06:43 +00:00 • committed by dizzafizza
parent 7880604f2d
commit 69d7a1d9cc

View file

@ -335,7 +335,7 @@ private func fetchRouteSpeedContext(
var components = URLComponents(url: OpenStreetMapSpeedLimitService.endpoint, resolvingAgainstBaseURL: false)
components?.queryItems = [URLQueryItem(name: "data", value: query)]
guard let url = components?.url else { return [] }
guard let url = components?.url else { return RouteSpeedContext(ways: [], busStops: []) }
let (data, response) = try await URLSession.shared.data(from: url)