Network cores

Build the network

mtldp.mtlmap.build_network_from_xml(file_name, logger_path='output', mode=<MapMode.ACCURATE: 0>, build_networkx=True)

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

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

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

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

  • mode (mtldp.mtlmap.map_modes.MapMode) –

Returns

mtldp.mtlmap.Network