From Martinez Amtrak train to Richmond then BART to Civic Center/UN Plaza. 1 h 19 min $35. From Martinez Amtrak Station bus to Hercules Transit Center then bus to San Francisco Transbay Terminal. 1 h 39 min $6. From Martinez taxi to San Francisco. 40 min $231. From Martinez drive to San Francisco. 40 min $4. From Martinez Uber to San Francisco. 40 min $64.