function addWaypointsToPanel(route) {
		var nodeH3 = document.createElement('h3'),
			labels = [];

		route.sections.forEach((section) => {
			labels.push(section.turnByTurnActions[0].nextRoad.name[0].value);
		});

		nodeH3.textContent = labels.join(' - ');
		$('#outputDirections').append(nodeH3);
	}
// Function to add waypoints to the directions panel
Function to add waypoints to the directions panel
Function to add waypoints to the directions panel
function addWaypointsToPanel(route) {
		var nodeH3 = document.createElement('h3'),
			labels = [];
		route.sections.forEach((section) => {
			labels.push(section.turnByTurnActions[0].nextRoad.name[0].value);
		});
		nodeH3.textContent = labels.join(' - ');
		$('#outputDirections').append(nodeH3);
	}
function addWaypointsToPanel ( route ) { var nodeH3 = document . createElement ( 'h3' ) , labels = [ ] ; route . sections . forEach ( ( section ) => { labels . push ( section . turnByTurnActions [ 0 ] . nextRoad . name [ 0 ] . value ) ; } ) ; nodeH3 . textContent = labels . join ( ' - ' ) ; $ ( '#outputDirections' ) . append ( nodeH3 ) ; }
Function to add waypoints to the directions panel
Function to add waypoints to the directions panel