matsim-org / matsim-code-examples

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

About fare structure of drt module #759

Open 14841484 opened 2 years ago

14841484 commented 2 years ago

I am researching the impact of sav service using the drt module. The drt module can rideshare with other travelers, but is it possible to get a discount on the fare when doing so?

The current drt module allows ridesharing, but the fare remains the same as when riding alone. We believe that a discount would be a more natural fare structure, since there would be no incentive for travelers to rideshare without a fare discount.

michalmac commented 2 years ago

Good point. I just added support for custom DrtFarHandlers: https://github.com/matsim-org/matsim-libs/pull/2090

Another (more generic) way: do not specify the fare params (in the drt config) and then "manually" add your custom event handler:

addEventHandlerBinding().toInstance(new MyCustomDrtFareHandler(getMode(), params))