routing support for excludables (not yet in UI)

This commit is contained in:
Laura Klünder 2016-12-19 21:24:40 +01:00
parent 1e0346a54d
commit 1c10ce443a
4 changed files with 41 additions and 15 deletions

View file

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