Remove arrive filter
This commit is contained in:
parent
2c4ba90abb
commit
825a422721
@ -122,7 +122,6 @@ module.exports = function () {
|
|||||||
postfix = postfix || null;
|
postfix = postfix || null;
|
||||||
if (instructions) {
|
if (instructions) {
|
||||||
return instructions.legs.reduce((m, v) => m.concat(v.steps), [])
|
return instructions.legs.reduce((m, v) => m.concat(v.steps), [])
|
||||||
.filter(v => v.maneuver.type !== 'arrive')
|
|
||||||
.map(keyFinder)
|
.map(keyFinder)
|
||||||
.join(',');
|
.join(',');
|
||||||
}
|
}
|
||||||
@ -145,6 +144,7 @@ module.exports = function () {
|
|||||||
return v.maneuver.type;
|
return v.maneuver.type;
|
||||||
case 'roundabout':
|
case 'roundabout':
|
||||||
return 'roundabout-exit-' + v.maneuver.exit;
|
return 'roundabout-exit-' + v.maneuver.exit;
|
||||||
|
// FIXME this is a little bit over-simplistic for merge/fork instructions
|
||||||
default:
|
default:
|
||||||
return v.maneuver.modifier;
|
return v.maneuver.modifier;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user