working distance calculation on edit route