matsim-org / pt2matsim

Package to create a multi-modal MATSim network and schedule from public transit data (GTFS or HAFAS) and an OSM map of the area.
http://www.ivt.ethz.ch/publikationen/studenten/530.html
GNU General Public License v2.0
49 stars 68 forks source link

Freespeed of artifical links #238

Open pburla91 opened 2 months ago

pburla91 commented 2 months ago

Hi,

I generated a network from OSM and mapped GTFS onto the network. I realized that some artificial links have freespeed of 1.0. Upon inspection I realized that is because the setFreeSpeedBasedOnSchedule() method does not process certain links. If two stops are on the same link in the route, the following stops are never processed to calculate theoretical minimum speed as the linkId never matches the linkId associated with the next link (as the outer loop is over the links).

polettif commented 2 months ago

Hi there. Could you provide an example dataset where this happens? Ideally just the transit route in question. I think two stops on the same link should not happen with mapping but my memory is a bit hazy on this.