def test_distance_equatorial(self): pt = Point((-140.0, 0.0)) pt_west = Point((-144.0, 0.0)) d = pt.distance(pt_west) self.assertLess(abs(d - 445277.963), 1.0) # from geod 4.8.0 return
def test_distance_meridional(self): pt = Point((-140.0, 41.0)) pt_north = Point((-140.0, 41.5)) d = pt.distance(pt_north) self.assertLess(abs(d - 55529.372145), 0.1) # from geographicslib return
def test_distance(self): pt = Point((-140.0, 41.0)) pt_northwest = Point((-142.0, 42.0)) d = pt.distance(pt_northwest) self.assertLess(abs(d - 200544.120615), 0.1) # from geographiclib return