matsim-org / matsim-code-examples

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

Excess egress mode #662

Open khzannat opened 2 years ago

khzannat commented 2 years ago

Is it possible to change the default excess egress mode (walk) in MATSim?

Janekdererste commented 2 years ago

Unfortunately, It is not I think. After looking at the NetworkRoutingProvider implementation, I think it always falls back to walk as access/egress mode.

What are you trying to accomplish? Maybe there is another way for you to implement what you want.

khzannat commented 2 years ago

Actually, in my Dhaka scenario "rickshaw", a non-motorized mode, is also used as access/egress mode. As a result from a longer distance people can avail PT. I wanted to include "rickshaw" as an access egress mode along with "walk" mode.

Janekdererste commented 2 years ago

I see. This is possible. I'll aks around about the specifics :-)

khzannat commented 2 years ago

@Janekdererste Thank you very much.

jakobrehmann commented 2 years ago

Multiple access/egress modes can be specified within the "SwissRailRaptorConfigGroup." You will need to create a new "IntermodalAccessEgressParameterSet" for rickshaw. In this param set you can specify the initial and maximum search radius. If no PT stops are found within the initial radius, the search radius can be expanded until a stop is found (up to the maximum search radius).

The following class should be a good starting point: https://github.com/matsim-org/matsim-libs/blob/master/contribs/av/src/main/java/org/matsim/contrib/av/intermodal/RunTaxiPTIntermodalExample.java

khzannat commented 2 years ago

@jakobrehmann Thank you for your suggestion. Following your suggestion, is it mandatory to have this new access/egress mode as network mode (like taxi)? Because, rickshaw is declared as teleported mode. I am asking this, as after setting rickshaw as new access/egress mode I am having error. I have attached herewith the code: https://github.com/khzannat/matsim-example-project/blob/master/src/main/java/org/matsim/project/RunMatsim4.java

jakobrehmann commented 2 years ago

The access/egress mode can also be a teleported mode.

I am having trouble reproducing your error: are you using Dhaka_input or Dhaka_input2? Are all the necessary input files in the repository? Can you include a log file of your errors?

khzannat commented 2 years ago

logfile.log Hi @jakobrehmann , I have attached herewith the logfile. Can you give me your email address? I can share with you the input and config I used.

khzannat commented 2 years ago

Hi, @jakobrehmann, I identified the problem. But don't know how to resolve. If my access mode is fully teleported then there is no error. Bur, when I tried to include teleported modes with the travel time as the routed travel time over the network as access/egress mode or real network modes with private vehicles running over the network as access/egress mode then it is showing the error.