Use bearing_before and bearing_after in the bearings field

This commit is contained in:
Patrick Niklaus
2016-05-18 17:52:05 +02:00
parent d150df1c5c
commit 3b37769624
5 changed files with 119 additions and 121 deletions
+1 -3
View File
@@ -138,9 +138,7 @@ module.exports = function () {
};
this.bearingList = (instructions) => {
return this.extractInstructionList(instructions, s => (typeof s.intersections[0].out !== 'undefined')
? s.intersections[0].bearings[s.intersections[0].out]
: 0);
return this.extractInstructionList(instructions, s => s.maneuver.bearing_before + '->' + s.maneuver.bearing_after);
};
this.annotationList = (instructions) => {