first stuff for graph building – collecting points
This commit is contained in:
parent
ffd5c3fa70
commit
211ef767db
7 changed files with 164 additions and 0 deletions
0
src/c3nav/routing/management/__init__.py
Normal file
0
src/c3nav/routing/management/__init__.py
Normal file
0
src/c3nav/routing/management/commands/__init__.py
Normal file
0
src/c3nav/routing/management/commands/__init__.py
Normal file
12
src/c3nav/routing/management/commands/buildgraph.py
Normal file
12
src/c3nav/routing/management/commands/buildgraph.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
from django.core.management.base import BaseCommand
|
||||
|
||||
from c3nav.mapdata.render import render_all_levels
|
||||
from c3nav.routing.graph import Graph
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
help = 'build the routing graph'
|
||||
|
||||
def handle(self, *args, **options):
|
||||
graphbuilder = Graph()
|
||||
graphbuilder.build()
|
Loading…
Add table
Add a link
Reference in a new issue