diff --git a/README b/README index 308a6f4e..a8978871 100644 --- a/README +++ b/README @@ -1,6 +1,3 @@ -[![Build Status](https://travis-ci.org/python-metar/python-metar.png?branch=master)](https://travis-ci.org/python-metar/python-metar) -[![Coverage Status](https://img.shields.io/coveralls/python-metar/python-metar.svg)](https://coveralls.io/r/python-metar/python-metar?branch=master) - ======================================================================== The metar library ======================================================================== diff --git a/metar/Datatypes.py b/metar/Datatypes.py index b7500507..11776fc1 100644 --- a/metar/Datatypes.py +++ b/metar/Datatypes.py @@ -440,7 +440,7 @@ def getdistance( self, position2 ): long1 = self.longitude lat2 = position2.latitude long2 = position2.longitude - a = sin(0.5(lat2-lat1)) + cos(lat1)*cos(lat2)*sin(0.5*(long2-long1)**2) + a = sin(0.5*(lat2-lat1)) + cos(lat1)*cos(lat2)*sin(0.5*(long2-long1)**2) c = 2.0*atan(sqrt(a)*sqrt(1.0-a)) d = distance(earth_radius*c,"M") return d