You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am writing a Listener to calculate the PT travel time during a specific second in the last iteration of my MATSim run.
I understand it needs to use router, so what I did was I first use: TransitRouter transitRouter = event.getServices().getInjector().getInstance(TransitRouter.class);;
However, different from the router for car (which just needs the Coord of origin and destination), the method: transitRouter.calcRoute() need to use the RoutingRequest as input variables.
I tried to find some types that can probably be used in this situation, and I found ActivityFacilityImpl.
However, the ActivityFacilityImpl needs to insert a Coord and linkID.
I have two questions:
Am I still on the right track for calculating the PT congested travel time?
If so, what are the differences between Coord and linkID in ActivityFacilityImpl. If I insert a coord and linkID that are very far away from each other, which attribute will be used in MATSim PT routing?
Thanks :)
The text was updated successfully, but these errors were encountered:
I am writing a
Listener
to calculate the PT travel time during a specific second in the last iteration of my MATSim run.I understand it needs to use
router
, so what I did was I first use:TransitRouter transitRouter = event.getServices().getInjector().getInstance(TransitRouter.class);
;However, different from the router for
car
(which just needs theCoord
of origin and destination), the method:transitRouter.calcRoute()
need to use theRoutingRequest
as input variables.I tried to find some types that can probably be used in this situation, and I found
ActivityFacilityImpl
.However, the
ActivityFacilityImpl
needs to insert aCoord
andlinkID
.I have two questions:
Coord
andlinkID
inActivityFacilityImpl
. If I insert a coord and linkID that are very far away from each other, which attribute will be used in MATSim PT routing?Thanks :)
The text was updated successfully, but these errors were encountered: