split route automatically
This commit is contained in:
parent
8394521800
commit
6508d05a3e
2 changed files with 1 additions and 1 deletions
|
@ -402,6 +402,7 @@ class Graph:
|
|||
dest_ctype = dest_ctypes[tuple(dest_points_i).index(best_route.to_point)] if add_dest_point else None
|
||||
best_route = SegmentRouteWrapper(best_route, orig_point=add_orig_point, dest_point=add_dest_point,
|
||||
orig_ctype=orig_ctype, dest_ctype=dest_ctype)
|
||||
best_route = best_route.split()
|
||||
return best_route
|
||||
|
||||
def _room_transfers(self, rooms, room_points, routers, mode):
|
||||
|
|
|
@ -183,7 +183,6 @@ def main(request, location=None, origin=None, destination=None):
|
|||
graph = Graph.load()
|
||||
route = graph.get_route(origin, destination, allowed_ctypes, public=public, nonpublic=nonpublic,
|
||||
avoid=avoid-set(':public'), include=include-set(':nonpublic'))
|
||||
route = route.split()
|
||||
route.create_routeparts()
|
||||
|
||||
ctx.update({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue