import math


def haversine_distance_ignore_altitude(loc1_lat, loc1_lon, loc2_lat, loc2_lon):
    """Returns the Haversine distance between two points on the Earth's surface."""
    R = 6372797.560856 # radius of the earth in meters

    lat_arc = math.radians(loc1_lat - loc2_lat)
    lon_arc = math.radians(loc1_lon - loc2_lon)

    lat_h = math.sin(lat_arc * 0.5)
    lat_h = lat_h * lat_h

    lon_h = math.sin(lon_arc * 0.5)
    lon_h = lon_h * lon_h

    tmp = math.cos(math.radians(loc1_lat)) * math.cos(math.radians(loc2_lat))
    rad = 2.0 * math.asin(math.sqrt(lat_h + tmp * lon_h))

    return rad * R