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

Method make_url

scripts/routed_benchmark.py:59–64  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

57 self.coordinates.append((float(row["@lat"]), float(row["@lon"])))
58
59 def make_url(self):
60 def toString(coords) -> str:
61 return ";".join([f"{coord[1]:.6f},{coord[0]:.6f}" for coord in coords])
62
63 coords = random.sample(self.coordinates, 2)
64 return f"{self.url}/{toString(coords)}?overview=full&steps=true"
65
66 def make_request(self):
67 """Make one routed request"""

Callers 1

make_requestMethod · 0.95

Calls 1

toStringFunction · 0.50

Tested by

no test coverage detected