matsim-org / matsim-code-examples

A repository containing code examples around MATSim
GNU General Public License v3.0
85 stars 180 forks source link

pt network config - which parameters are used by default #124

Open gac55 opened 5 years ago

gac55 commented 5 years ago

Hello all,

I can see parameters relating to the pt network being defined in two locations and I'm unsure which is actually used (by default anyway).

Parameters in question - searchRadius, extensionRadius, maxBeelineWalkConnectionDistance, additionalTransferTime

What is the difference between those in https://github.com/matsim-org/matsim/blob/master/matsim/src/main/java/org/matsim/pt/config/TransitRouterConfigGroup.java and those in https://github.com/matsim-org/matsim/blob/master/matsim/src/main/java/org/matsim/pt/router/TransitRouterConfig.java

Many thanks for any help. It's not clear to me which is being used by default

Gerry

vsp-gleich commented 5 years ago

Hi Gerry,

the TransitRouterConfig is initialized with the values in TransitRouterConfigGroup (see constructor of TransitRouterConfig), so the values hard coded in TransitRouterConfig.java are overwritten.

Best regards, Gregor