MCPcopy Create free account
hub / github.com/Project-OSRM/osrm-backend / classesList

Method classesList

features/support/route.js:339–345  ·  view source on GitHub ↗
(instructions)

Source from the content-addressed store, hash-verified

337 }
338
339 classesList(instructions) {
340 return this.extractInstructionList(
341 instructions,
342 (s) =>
343 `[${s.intersections.map((i) => `(${i.classes ? i.classes.join(',') : ''})`).join(',')}]`,
344 );
345 }
346
347 timeList(instructions) {
348 return this.extractInstructionList(instructions, (s) => `${s.duration}s`);

Callers 1

afterRequestMethod · 0.80

Calls 2

joinMethod · 0.80

Tested by

no test coverage detected