Open khzannat opened 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.
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.
I see. This is possible. I'll aks around about the specifics :-)
@Janekdererste Thank you very much.
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
@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
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?
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.
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.
Is it possible to change the default excess egress mode (walk) in MATSim?