def get_distance_metres(aLocation1, aLocation2):
 dlat = (aLocation2.lat - aLocation1.lat)
 dlong = (aLocation2.lon - aLocation1.lon)
 return (math.sqrt(((dlat * dlat) + (dlong * dlong))) * 111319.5)

def get_distance_metres ( aLocation1 , aLocation2 ) : dlat = ( aLocation2 . lat - aLocation1 . lat ) dlong = ( aLocation2 . lon - aLocation1 . lon ) return ( math . sqrt ( ( ( dlat * dlat ) + ( dlong * dlong ) ) ) * 111319.5 )
returns the ground distance in metres between two locationglobal objects .