Is this correct?
Asking the driver or the another person:
- Does this bus go (or goes) to X?
- Do you go to X?
If you're talking directly to the driver, either of the following would work:
While I would prefer the former, the latter is also somewhat common since it's assumed that the bus and the driver are going to the same places. However, if you're asking another random person, you definitely want the former as the person's final destination may not be the same as the bus's.
Not disputing the earlier answer, but as an alternative you might ask:
If I wanted to know how to get to X on a bus I would ask "How do I get to X from a bus?"
Problems with "Does this bus go to X?" include the fact that a correct answer ("yes" or "no") does not actually tell you how to get to X; you don't know which stop to get off or if you have to transfer. In addition, the bus may go to X but there could be another bus that is much faster or cheaper.
As others have pointed out, "Do you go to X?" does not tell you whether the bus goes to X or not.