-
Notifications
You must be signed in to change notification settings - Fork 69
Creating a multimodal network (Osm2MultimodalNetwork)
The OSM converter in pt2matsim is based on the OSM reader by M. Rieser (org.matsim.core.utils.io.OsmNetworkReader). However, some changes have been made: The default values for links as well as parameters are stored in a config.xml file. This file allows to define whether an opposite link should be created and to set values for capacity, freespeed and the number of lanes for highway=* and railway=* tags. This also allows to convert rail links. In addition, ways that are only used by buses (i.e. are part of a relation tagged with route=* in OSM) are included in a network. If information on number of lanes or freespeed is available for an OSM way, it is used for the MATSim link. Relevant OSM attributes (for ways and routes) are stored as link attributes in the network.
It is recommended to simplify the network by inserting only one link instead of multiple links between two intersections. The Euclidian distance between the new link's end nodes will less than the the summed up length of the replaced links but the original length can be stored in the length attribute of the new link.
The converter can be run via
org.matsim.pt2matsim.run.Osm2MultimodalNetwork
with the config file path as argument.
A default config file can be created by running
org.matsim.pt2matsim.run.CreateDefaultOsmConfig defaultConfigFile.xml
There are other possibilities to create a multimodal network (e.g. JOSM), the mapper works on any (sufficiently well created) MATSim network.