(options, query_points)
| 79 | |
| 80 | // Convert coordinate points into OSRM API query URLs |
| 81 | function 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 |
| 89 | function ServerDetails(x) { |
no test coverage detected