The pipeline starts in Madimba Village, in Mtwara Region, in southeastern Tanzania and runs in a northerly direction, through Somanga, in Lindi Region, to end at Dar es Salaam, Tanzania's largest city, a total distance of approximately 542 kilometers .