def check_coordinates(loc_lat: float, loc_long: float, data_lat: float, data_long: float, margin=1.0) -> bool:
    """
        Compares a pair of coordinates (latitude and longitude) to ensure proximity to a maximum value ('margin').
        :param loc_lat: Latitude 1
        :param loc_long: Longitude 1
        :param data_lat: Latitude 2
        :param data_long: Longitude 2
        :param margin: Maximum error margin to be accepted. A value greater than 'margin' yields False.
        :return: True if the difference between coordinates (in absolute value) is less than margin (for both latitude
                 and longitude), and False otherwise.
        :rtype: bool
    """
    return abs(loc_lat - data_lat) <= margin and abs(loc_long - data_long) <= margin