Skip to content

prepare mesh network

ASU Trans+AI Lab edited this page Dec 18, 2021 · 1 revision

import osm2gmns as og import os

map_folder = 'network'

net = og.getNetFromFile(filename=os.path.join(map_folder, 'map.pbf'), link_types=('motorway', ), # 'trunk','primary','secondary', 'tertiary' default_lanes=True, default_speed=True, default_capacity=True)

og.consolidateComplexIntersections(net) og.generateNodeActivityInfo(net) og.buildMultiResolutionNets(net) og.outputNetToCSV(net, output_folder=map_folder) og.show(net) og.saveFig(net)

Clone this wiki locally