MCPcopy Create free account
hub / github.com/comaps/comaps / get_way_ids

Function get_way_ids

tools/python/road_runner.py:22–28  ·  view source on GitHub ↗
(point1, point2, server)

Source from the content-addressed store, hash-verified

20WORKERS = 16
21
22def get_way_ids(point1, point2, server):
23 url = "http://{0}/wayid?z=18&loc={1},{2}&loc={3},{4}".format(server, point1[0], point1[1], point2[0], point2[1])
24 request = urlopen(url)
25 data = json.load(request)
26 if "way_ids" in data:
27 return data["way_ids"]
28 return []
29
30def each_to_each(points):
31 result = []

Callers 2

parallel_workerFunction · 0.85
road_runner.pyFile · 0.85

Calls 2

formatMethod · 0.80
loadMethod · 0.45

Tested by

no test coverage detected