+ var steps=[];
+ var mq=data.route.legs[0].maneuvers;
+ for (var i=0; i<mq.length; i++) {
+ var s=mq[i];
+ var d=(i==mq.length-1) ? 15: this.MQ_SPRITE_MAP[s.turnType];
+ steps.push([L.latLng(s.startPoint.lat, s.startPoint.lng), d, s.narrative, s.distance*1000]);
+ }
+ router.setItinerary( { steps: steps });