From c767572dee76e02155f72fb8a1e4f0c9839b0e6e Mon Sep 17 00:00:00 2001 From: Sven Czarnian Date: Wed, 24 Nov 2021 12:03:34 +0100 Subject: [PATCH] ignore unused return values --- aman/types/Waypoint.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aman/types/Waypoint.py b/aman/types/Waypoint.py index 5cb044c..1e5272b 100644 --- a/aman/types/Waypoint.py +++ b/aman/types/Waypoint.py @@ -64,10 +64,10 @@ class Waypoint: def haversine(self, other): geodesic = pyproj.Geod(ellps='WGS84') - forward, backward, distance = geodesic.inv(self.Coordinate[1], self.Coordinate[0], other.Coordinate[1], other.Coordinate[0]) - return distance / 1000.0 + _, _, distance = geodesic.inv(self.Coordinate[1], self.Coordinate[0], other.Coordinate[1], other.Coordinate[0]) + return distance / 1000.0 * 0.539957 def bearing(self, other): geodesic = pyproj.Geod(ellps='WGS84') - forward, backward, distance = geodesic.inv(self.Coordinate[1], self.Coordinate[0], other.Coordinate[1], other.Coordinate[0]) + forward, _, _ = geodesic.inv(self.Coordinate[1], self.Coordinate[0], other.Coordinate[1], other.Coordinate[0]) return forward