def find_smallest_angle(angle1, angle2, absolute_value=False):
    """Find the smallest angle between two provided azimuth angles.
    @param: - angle1 - first angle in degrees between 0 and 360 degrees
    @param: - angle2 - first angle in degrees between 0 and 360 degrees
    @param: - absolute_value - if true, return absolute value of result
    """
    diff = angle1 - angle2
    diff = (diff + 180) % 360 - 180
    if absolute_value:
        diff = abs(diff)
    return diff