Hi Vikas,
The source code is provided in the sample when you click through and you should be able to extend that to multiple routes. This sample turns the route into a polygon so you would end up with multiple polygons that you would need to process instead of just one.
Sincerely,
IoTGirl