Skip to content

faq 108632118

Billy Charlton edited this page Sep 5, 2018 · 2 revisions

Incorporate fare into transit

by Enoch Lee on 2017-03-26 17:17:47


Dear all,

I am trying to build a MATSim transit network with different fare for every station pairs for the railway network and bus route network. I read through the public transportation settings, but it seems the model only considers the distance on vehicle, total time, and time and distance for transit walk. Is there convenient way to incorporate the transit fare into transit route decision models?

Road pricing probably don't work, because for pt in city like Hong Kong, the fare is determined approximately by distance, but not zones.

e.g. 1-3 stations $1, 4-9 stations $2, 10-20 stations $3, etc.

Thanks


Comments: 2


Re: Incorporate fare into transit

by Joschka Bischoff on 2017-03-27 06:34:57

Hi,


this does not work out of the box, but should be easy to implement using your own Event handler.

Something similar (not distance based) exists for the Santiago de Chile scenario.


For an entry into the scenario, see http://www.vsp.tu-berlin.de/publications/vspwp/ , paper 16-02

The scenario data can be downloaded from

http://svn.vsp.tu-berlin.de/repos/public-svn/matsim/scenarios/countries/cl/santiago/ 

and, most importantly, an entry into the code would be https://github.com/matsim-org/matsim/tree/master/playgrounds/santiago/src/main/java/playground/santiago/run

Especially, the "PTFareHandler.java"


Hope that helps,


Joschka


Re: Incorporate fare into transit

by Andreas Neumann on 2017-03-27 08:22:45

In addition to Thibaut's comment Thibaut's comment, I would like to point to some earlier attempts to incorporate fares to the transit router

  1. For the regular transit router of MATSim, it is possible to add your own disutillity function. playground.droeder.fareRouter.FareRoutingTestScenario gives some general albeit maybe outdated guideline on how to set this up.
  2. There is a raptor routing module that can use a fare system for routing. However, when I last checked the raptor routing module had not been merged to the master yet. You'll find it on the branch moveRaptorToMain.
Clone this wiki locally