diff --git a/iOS/Projects/Features/Record/Sources/Domain/UseCases/KalmanFilter.swift b/iOS/Projects/Features/Record/Sources/Domain/UseCases/KalmanFilter.swift index dc996a82..2ca532b7 100644 --- a/iOS/Projects/Features/Record/Sources/Domain/UseCases/KalmanFilter.swift +++ b/iOS/Projects/Features/Record/Sources/Domain/UseCases/KalmanFilter.swift @@ -65,6 +65,7 @@ struct KalmanFilter { // 우리가 궁금한건 위도와 경도이기 때문에 필요한 부분만 기재했습니다. var prevTime: Date + init(initLocation: CLLocation) { x = .init(initLocation.coordinate.latitude, 0, initLocation.coordinate.longitude, 0) prevTime = initLocation.timestamp diff --git a/iOS/Projects/Features/Record/Sources/Presentation/WorkoutSessionGroupScene/RouteMapScene/WorkoutRouteMapViewController.swift b/iOS/Projects/Features/Record/Sources/Presentation/WorkoutSessionGroupScene/RouteMapScene/WorkoutRouteMapViewController.swift index 1e5d362b..63a63d61 100644 --- a/iOS/Projects/Features/Record/Sources/Presentation/WorkoutSessionGroupScene/RouteMapScene/WorkoutRouteMapViewController.swift +++ b/iOS/Projects/Features/Record/Sources/Presentation/WorkoutSessionGroupScene/RouteMapScene/WorkoutRouteMapViewController.swift @@ -206,14 +206,10 @@ final class WorkoutRouteMapViewController: UIViewController { self?.locations .forEach { location in - let currentCLLocationCoordinator2D = CLLocationCoordinate2D( - latitude: location.latitude, - longitude: location.longitude - ) // snapshot에서 현재 위도 경도에 대한 데이터가 어느 CGPoint에 있는지 찾아내고, 이를 Polyline을 그립니다. - context.cgContext.addLine(to: snapshot.point(for: currentCLLocationCoordinator2D)) - context.cgContext.move(to: snapshot.point(for: currentCLLocationCoordinator2D)) + context.cgContext.addLine(to: snapshot.point(for: location)) + context.cgContext.move(to: snapshot.point(for: location)) } // 현재 컨텍스트 에서 여태 그린 Path를 적용합니다.