react-native-nitro-geolocation 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -947,7 +947,7 @@ class NitroGeolocation: HybridNitroGeolocationSpec {
|
|
|
947
947
|
}
|
|
948
948
|
|
|
949
949
|
private func angularDistance(_ first: Double, _ second: Double) -> Double {
|
|
950
|
-
let distance = abs(first - second).truncatingRemainder(dividingBy: 360)
|
|
950
|
+
let distance = Swift.abs(first - second).truncatingRemainder(dividingBy: 360)
|
|
951
951
|
return distance > 180 ? 360 - distance : distance
|
|
952
952
|
}
|
|
953
953
|
|