Add cucumber tests for node IDs
This commit is contained in:
committed by
Daniel J. Hofmann
parent
a4ac07866a
commit
6777127497
@@ -163,6 +163,11 @@ module.exports = function () {
|
||||
return matching.legs.map(l => {return zip(l.annotation.duration, l.annotation.distance).map(p => { return p.join(':'); }).join(','); }).join(',');
|
||||
};
|
||||
|
||||
this.OSMIDList = (instructions) => {
|
||||
// OSM node IDs also come from the annotation list
|
||||
return instructions.annotation.nodes.map(x => x.toString()).join(',');
|
||||
}
|
||||
|
||||
this.turnList = (instructions) => {
|
||||
return instructions.legs.reduce((m, v) => m.concat(v.steps), [])
|
||||
.map(v => {
|
||||
|
||||
Reference in New Issue
Block a user