routing support for excludables (not yet in UI)
This commit is contained in:
parent
1e0346a54d
commit
1c10ce443a
4 changed files with 41 additions and 15 deletions
|
@ -44,7 +44,8 @@ def main(request, origin=None, destination=None):
|
|||
allowed_ctypes += get_ctypes('escalator', request.POST.get('escalators'))
|
||||
allowed_ctypes += get_ctypes('elevator', request.POST.get('elevators'))
|
||||
|
||||
route = graph.get_route(origin, destination, allowed_ctypes)
|
||||
route = graph.get_route(origin, destination, allowed_ctypes,
|
||||
public=True, nonpublic=False, avoid=(), include=())
|
||||
route = route.split()
|
||||
route.create_routeparts()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue