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

Method toString

scripts/routed_benchmark.py:60–61  ·  view source on GitHub ↗
(coords)

Source from the content-addressed store, hash-verified

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"

Callers 14

nearest.jsFile · 0.80
tableParseFunction · 0.80
data.jsFile · 0.80
routability.jsFile · 0.80
trip.jsFile · 0.80
matching.jsFile · 0.80
findNodeByNameMethod · 0.80
findWayByNameMethod · 0.80
findRelationByNameMethod · 0.80
alternativesListMethod · 0.80
afterRequestMethod · 0.80
saveChildOutputMethod · 0.80

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected