 It ran between San Pedro and Los Angeles.In 1876 California's first railroad linking Los Angeles with Northern California was completed when the San Joaquin line of the Southern Pacific Railroad finished the San Fernando Railroad Tunnel through the Tehachapi mountains, linking Los Angeles to the Central Pacific Railroad.This route to Los Angeles followed the Tehachapi Loop, a long 'spiral track', or helix, through Tehachapi Pass in Kern County and connected Bakersfield and the San Joaquin Valley to Mojave in the Mojave Desert.