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

Function ServerDetails

scripts/osrm-runner.js:89–94  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

87
88// Parse server hostname:port from command line arguments
89function ServerDetails(x) {
90 if (!(this instanceof ServerDetails)) return new ServerDetails(x);
91 const v = x.split(':');
92 this.hostname = (v[0].length > 0) ? v[0] : '';
93 this.port = (v.length > 1) ? Number(v[1]) : 80;
94}
95// Parse geographic bounding box coordinates from command line
96function BoundingBox(x) {
97 if (!(this instanceof BoundingBox)) return new BoundingBox(x);

Callers 1

osrm-runner.jsFile · 0.85

Calls 1

NumberClass · 0.85

Tested by

no test coverage detected