Go to 511.org and bookmark that site. It gives detailed routing information from and to anywhere in the greater San Francisco Bay Area.
The site is a bit slow, but delivers a lot of highly useful information including your chosen mode of travel, be it walking, driving, bicycling, bus, train, or ferryboat along with route numbers, arrival and departure times, bus route numbers, and costs.
Aida, you asked this about a year ago, but other readers will find it extremely useful as I have. Go to 511.org to get any route information from any point in the San Francisco Bay Area to any other point in the greater San Francisco Bay Area. You choose whether you walk, drive, bus, or use trains, or ferry boats.
What you get is a detailed route including all public transportation, time needed to traverse and costs. Works a bit slow, but delivers a great amount of highly useful information.