Solved cumulative off by 1e-5 bug giving slight inaccuracies for kilometerlong paths