However, the ideal transportation if you're visiting is to simply walk around. It's amazing how easy it is to walk everywhere in SF.
For Alcatraz, just grab a lyft/uber to the pier and take the ferry. By the way, if you have time the longer, late evening tours are quite interesting.
Long commutes make me miserable, so I decided to live closer to work than most of my colleagues. It's a manageable 10 minutes by car. It would be ~30 minutes by bike, but this part of NJ is unbikeable.