I have a route task that is calculating multiple routes simultaneously. When the user clicks on a map, a stop is added and draws different routes for up to seven different locations. I have assigned every stop a route name and each route is drawing properly to the appropriate stops. I need to return the total length of each individual route as a variable for input into a function and was wondering what would be the best way of going about this. I can successfully alert box the lengths of each route by using: var routeInfo = solveResult.routeResults.directions.totalLength; alert(JSON.stringify(routeInfo)); However, the order that each alert message displays starts with the shortest distance routes first. How do I need to go about identifying which distance is associated with each route? Thanks in advance.