Mode changes, guidance comments, fix turns
This commit is contained in:
committed by
Patrick Niklaus
parent
908e3a2af6
commit
126d2f85ac
@@ -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(',');
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user