Translates a unit position to a known parking spot

    Args:
        unit_pos: unit position as Vec2

    Returns: ParkingSpot object

def unit_pos_to_spot(unit_pos) -> ParkingSpot:
    """
    Translates a unit position to a known parking spot

    Args:
        unit_pos: unit position as Vec2

    Returns: ParkingSpot object

    """
    min_ = 50
    res = None
    for airport in parkings:
        for spot in parkings[airport]:  # type: ignore
            spot_pos = parkings[airport][spot]  # type: ignore
            dist = math.hypot(unit_pos[0] - spot_pos[0], unit_pos[1] - spot_pos[1])
            if dist < min_:
                min_ = dist  # type: ignore
                res = ParkingSpot(airport=airport, spot=spot)
    return res