calculate stationing of points on lines