Hello @JaySandhu ,
We also discussed this with ESR and the split route segment was due to network junctions.
The solution you provided works but there are two requirements that is missing with this approach,
1)Maintain sequence of street segments and
2)it does not does not dissolve segment if, same segment come more then once e.g. in case of return route.
So, the only way is to build some custom code to merge continuous route segments.
Thank you for your help