The ALKMaps API has the capability to display the map as well as the ALK directions in JSON or HTML format.


Click for Developer Guide


For example; some html tags changes for web display purposes:


routingLayer.addRoute({
                stops: stops,
                functionOptions: {
                    routeId: "PhiladelphiaToAC",
                    showHandles: false,
          callback: function (results) {
                        reportList = results.report.Mileage;
                         document.getElementById("report1").innerHTML = results.report.Mileage;
 
                        document.getElementById("report2").innerHTML = results.report.Directions;
                      }
                },
                routeOptions: {},
                reportOptions: {
        type:"Mileage,Directions", 
        dataVersion: "current",        
        format:"html",
                condenseDirs:false
        }
            });