Skip to content

Setup pre‐post transport types

Jip Claassens edited this page Jul 9, 2025 · 2 revisions

You can set up several options for which type of pre- or post-transport you would like to consider in the route calculations. Pre-transport refers to the mode of transport and route from the origin to the first stop. The post-transport is the mode of transport and the route from the last stop to the destination.

The options can be set via /ModelParameters/Advanced/OV_Voortransport_Typen.

Currently, the following code is in place. Here, you can comment/uncomment options. In this example, the possibilities of walking from the origin to the stop and cycling from the origin towards an InterCity train station are considered. Would you also like to consider cycling from the origin towards rail, metro, and tram stops? Then, the line with 'Org2RMT_Stops_Cycling' should be uncommented (and, of course, the nrofrows should be increased to 3).

unit<uint8> OV_Voortransport_Typen : nrofrows = 2 
, Descr = "Select here the to be considered pre-transport options."
{
	attribute<TimeInvariantTypes> TimeInvariantTypes_rel := 
		union_data(.,
			 TimeInvariantTypes/V/Org2Stops_Walking
			// ,TimeInvariantTypes/V/Org2Stops_Cycling
			// ,TimeInvariantTypes/V/Org2RMT_Stops_Cycling
			,TimeInvariantTypes/V/Org2Tic_Stops_Cycling
		);
	attribute<string> name    := TimeInvariantTypes/name[TimeInvariantTypes_rel];
	attribute<min_f>  MaxTime := TimeInvariantTypes/MaxTime[TimeInvariantTypes_rel];
}

Similarly, the considered options for post-transport can be set in OV_Natransport_Typen, where OVF stands for stops with an OV-fiets.

unit<uint8> OV_Natransport_Typen : nrofrows = 2 
, Descr = "Select here the to be considered post-transport options."
{
	attribute<TimeInvariantTypes> TimeInvariantTypes_rel :=
		union_data(.,
			 TimeInvariantTypes/V/Stops2Dest_Walking
			// ,TimeInvariantTypes/V/Stops2Dest_Cycling
			,TimeInvariantTypes/V/OVF_Stops2Dest_Cycling
		);
	attribute<string> name    := TimeInvariantTypes/name[TimeInvariantTypes_rel];
	attribute<min_f>  MaxTime := TimeInvariantTypes/MaxTime[TimeInvariantTypes_rel];
}
Clone this wiki locally