Mode changes, guidance comments, fix turns

This commit is contained in:
Lauren Budorick
2016-03-28 21:15:15 -07:00
committed by Patrick Niklaus
parent 908e3a2af6
commit 126d2f85ac
10 changed files with 215 additions and 205 deletions
+2 -2
View File
@@ -131,9 +131,9 @@ module.exports = function () {
};
this.turnList = (instructions) => {
// console.log(instructions.legs[0].steps)
return instructions.legs.reduce((m, v) => m.concat(v.steps), [])
.filter(v => v.maneuver.modifier)
.map(v => v.maneuver.modifier)
.map(v => v.maneuver.type === 'depart' ? 'head' : v.maneuver.type === 'arrive' ? 'destination' : v.maneuver.modifier)
.join(',');
};