From Martinez Amtrak train to Richmond then BART to Civic Center/UN Plaza. 1 h 20 min $40. From Martinez Amtrak Station bus to Hercules Transit Center then bus to San Francisco Transbay Terminal. 1 h 30 min. From Martinez taxi to San Francisco. 40 min $230. From Martinez drive to San Francisco. 40 min $4. From Martinez Uber to San Francisco. 40 min $66.