split route automatically

This commit is contained in:
Laura Klünder 2016-12-21 01:21:02 +01:00
parent 8394521800
commit 6508d05a3e
2 changed files with 1 additions and 1 deletions

View file

@ -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):

View file

@ -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({