Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I believe that the term "bathroom" can be used to refer to a room containing at least a bath or shower, and the "toilet" is the room where you can relieve yourself. I live in a country where it is very common to have combined toilet and bathroom in apartments, and separate ones are rare, so these terms are usually used interchangeably here, but that's not always the case and may depend on the context.