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

Function generate_queries

scripts/osrm-runner.js:81–86  ·  view source on GitHub ↗
(options, query_points)

Source from the content-addressed store, hash-verified

79
80// Convert coordinate points into OSRM API query URLs
81function generate_queries(options, query_points) {
82 const queries = query_points.map(points => {
83 return options.path.replace(/{}/g, () => points.pop().join(','));
84 });
85 return queries;
86}
87
88// Parse server hostname:port from command line arguments
89function ServerDetails(x) {

Callers 1

osrm-runner.jsFile · 0.85

Calls 2

joinMethod · 0.80
popMethod · 0.45

Tested by

no test coverage detected