Calculate the distance between two GPS-Coordinates

This function uses the Haversine formula to calculate the distance which takes into account the spherical nature of the earth. As the earth is not a perfect sphere, this function approximates this by using the average radius. from math import sin, cos, radians, sqrt, asin def lldistance(a, b):    """    Calculates the distance between … Continue reading Calculate the distance between two GPS-Coordinates