<% if (routes > 1) { %>
<% for (var i = 0; i < routes; i++) { %> checked<% } %>> <% } %>
<% } %>

<%- duration %>

<%- distance %>
    <% steps.forEach(function(step) { %> <% var distance = step.distance ? format(step.distance) : false; var icon = step.maneuver.modifier ? step.maneuver.modifier.replace(/\s+/g, '-').toLowerCase() : step.maneuver.type.replace(/\s+/g, '-').toLowerCase(); if (['arrive', 'depart', 'waypoint'].includes(step.maneuver.type)) { icon = step.maneuver.type; } if (step.maneuver.type === 'roundabout' || step.maneuver.type === 'rotary') { icon = 'roundabout'; } var lng = step.maneuver.location[0]; var lat = step.maneuver.location[1]; %>
  1. <%- step.maneuver.instruction %>
    <% if (distance) { %>
    <%= distance %>
    <% } %>
  2. <% }); %>