def _decimal_to_dms(dd: float) -> tuple[int, int, float]:
    """Convert decimal degrees to degrees, minutes, seconds"""
    degrees, minutes = divmod(abs(dd) * 60, 60)
    minutes, seconds = divmod(minutes * 60, 60)
    return int(degrees), int(minutes), seconds