There only direct public transit to Foster City is via bus, either AC Transit from the East Bay, there is express service from the Union City and Hayward BART stations or SAMTrans several routes. There are also shuttles from the Hillsdale Caltrain station in San Mateo (http://www.fostercity.org...), although service has been cut back.
It is also very readily accessible from Highway 92 Foster City Boulevard and Edgewater/Mariner's Island exits, and indirectly from Highway 101 Hillsdale.