Network cores

Build the network from .osm

mtldp.mtlmap.build_network_from_xml(file_name, logger_path='output', logger_file='map.log', mode=<MapMode.ACCURATE: 1>, build_networkx=True, intersection_name_file=None)

Build the network class in mtldp.mtlmap.Network from OpenStreetMap data

Parameters
  • intersection_name_file (str) – str, name of the file that containing the name of the intersections

  • file_name (str) – str, input map file name (.osm or .xml)

  • build_networkx (bool) – bool, whether build the networkx graph object (Default: True)

  • logger_path (str) – str, output logger path, name as /map.log

  • logger_file (str) – str, name of the logger file

  • mode (mtldp.mtlmap.MapMode) – mtldp.mtlmap.MapMode, mode selection for the network layers

Returns

Static network class mtldp.mtlmap.Network, see reference for the list of the static network classes