From a6e264f916116414b219e9c88c330c63cefbdca5 Mon Sep 17 00:00:00 2001 From: Dzmitry Komar Date: Thu, 17 Oct 2024 11:19:52 +0300 Subject: [PATCH] fix wrong conversion from meters to yards and from meters to inches --- lib/src/helpers.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/helpers.dart b/lib/src/helpers.dart index f82c9b2..e49eca8 100644 --- a/lib/src/helpers.dart +++ b/lib/src/helpers.dart @@ -52,14 +52,14 @@ const factors = { Unit.centimeters: earthRadius * 100, Unit.degrees: earthRadius / 111325, Unit.feet: earthRadius * 3.28084, - Unit.inches: earthRadius * 39.370, + Unit.inches: earthRadius * 39.3701, Unit.kilometers: earthRadius / 1000, Unit.meters: earthRadius, Unit.miles: earthRadius / 1609.344, Unit.millimeters: earthRadius * 1000, Unit.nauticalmiles: earthRadius / 1852, Unit.radians: 1, - Unit.yards: earthRadius / 1.0936, + Unit.yards: earthRadius * 1.0936, }; const unitsFactors = {