Pichilemu is located 126 k west of San Fernando , Chile and just east of the Pacific Ocean . Pichilemu is located 126 k west of San Fernando , in the westernmost area of the O'Higgins Region , on the coast of the Pacific Ocean .