Created
May 8, 2013 15:56
-
-
Save maplinkapi/5541442 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var routeManager = new MRouteMannager(map); | |
routeManager.createRoute(routeStops, routeOptions, null, function (response) { | |
function getRouteTotals(routeTotalsResponse) { | |
var routeTotals = "[RouteTotals]"; | |
routeTotals += "<br/>"; | |
routeTotals += "totalDistance: " + routeTotalsResponse.totalDistance; | |
routeTotals += ", totalTime: " + routeTotalsResponse.totalTime; | |
routeTotals += ", totalFuelUsed: " + routeTotalsResponse.totalFuelUsed; | |
routeTotals += ", totaltollFeeCost: " + routeTotalsResponse.totaltollFeeCost; | |
routeTotals += ", totalFuelUsed: " + routeTotalsResponse.totalFuelUsed; | |
routeTotals += ", totalCost: " + routeTotalsResponse.totalCost; | |
routeTotals += ", taxiFare1: " + routeTotalsResponse.taxiFare1; | |
routeTotals += ", taxiFare2: " + routeTotalsResponse.taxiFare2; | |
routeTotals += "<br/><br/>"; | |
return routeTotals; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment