When configuring a network using osmnx, is it not possible to create a motorway? When configuring with osmWebWizard, if the road type is set to the default setting of All Roads, a more detailed road configuration including highways is created for the same area and range.
def create_sumo_network():
G = ox.graph_from_address('방교동, 동탄6동, 화성시, 18487, 대한민국', 1000, dist_type="bbox", network_type="drive",
simplify=False)
ox.save_graph_xml(G, "data/test.osm")
subprocess.run(["netconvert", "--osm-files", "data/test.osm", "-o", "data/test.net.xml"], check=True)
random_trips = os.path.join(tools, 'randomTrips.py')
subprocess.run([sys.executable, random_trips, "-n", "data/test.net.xml",
"-r", "data/test.rou.xml", "-e", "3600", "-l", "--random", "--random-factor", "1.2",
"--random-depart"], check=True)
subprocess.run(["duarouter", "-n", "data/test.net.xml", "-r", "data/test.rou.xml",
"-o", "data/test.rou.xml", "--ignore-errors"], check=True)
New contributor
Hajun Jo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.