Removing unneeded stopgap
This commit is contained in:
parent
958199ffef
commit
07f3e2d457
@ -112,10 +112,7 @@ 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 => {
|
.filter(v => v.maneuver.type !== 'arrive')
|
||||||
// TODO distance check is stopgap for https://github.com/Project-OSRM/osrm-backend/pull/2159
|
|
||||||
return v.maneuver.type !== 'arrive' && v.distance > 0
|
|
||||||
})
|
|
||||||
.map(keyFinder)
|
.map(keyFinder)
|
||||||
.join(',');
|
.join(',');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user