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

Function getRandomCoordinate

scripts/poly2req.js:108–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

106
107// Generate random coordinate within the defined bounding box
108function getRandomCoordinate() {
109 let lon = seededRandom(sw[0], ne[0]);
110 let lat = seededRandom(sw[1], ne[1]);
111 return [lon, lat];
112}
113
114// Build OSRM API query URL from coordinate array
115function makeQuery(coords) {

Callers 1

poly2req.jsFile · 0.85

Calls 1

seededRandomFunction · 0.85

Tested by

no test coverage detected