def delta_heading(coordinate1, coordinate2):
    """
    Return the change in user heading between two coordinate bearings.
    """
    delta1 = abs(coordinate1.bearing - coordinate2.bearing)
    delta2 = 360 - delta1
    return min([delta1, delta2])
