ignore unused return values

This commit is contained in:
Sven Czarnian committed 2021-11-24 12:03:34 +01:00
1 parent bd0fdb0899
commit c767572dee
1 file changed
+3 -3
+3 -3
View File
@@ -64,10 +64,10 @@ class Waypoint:
def haversine(self, other): def haversine(self, other):
geodesic = pyproj.Geod(ellps='WGS84') geodesic = pyproj.Geod(ellps='WGS84')
forward, backward, distance = geodesic.inv(self.Coordinate[1], self.Coordinate[0], other.Coordinate[1], other.Coordinate[0]) _, _, distance = geodesic.inv(self.Coordinate[1], self.Coordinate[0], other.Coordinate[1], other.Coordinate[0])
return distance / 1000.0 return distance / 1000.0 * 0.539957
def bearing(self, other): def bearing(self, other):
geodesic = pyproj.Geod(ellps='WGS84') 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 return forward