You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Flavio Poletti edited this page Jun 29, 2021
·
2 revisions
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.