set Route Leg Index
Set the (zero-based) index of the route in the DirectionsResult object to render. By default, the first route in the array will be rendered.
Parameters
index
Set the (zero-based) index of the route in the DirectionsResult object to render. By default, the first route in the array will be rendered.