Syntax 

int PCMSMatrixSetOptions(Trip trip)


Parameters 

Trip trip – Handle to a trip.


Description

Sets the routing parameters used when calculating the route for each cell of the matrix. (A license for PC*MILER|RouteMatrix is required.)


The routing parameters are first set by creating a trip using the standard PC*MILER|Connect functions. PCMSMatrixSetOptions simply copies the previously set options from that trip for RouteMatrix to utilize.


Return Values 

Negative one (-1) indicates that the product is not licensed for RouteMatrix.


Sample Code

/* Configure the trip options you want to use when running all matrix trips */
PCMSSetCalcType(matTrip, CALC_PRACTICAL);
PCMSSetBordersOpen(matTrip, FALSE);
PCMSSetCustomMode(matTrip, TRUE);
PCMSSetRoadSpeedType(matTrip,2);
PCMSSetDateOption(matTrip,2);

/* Tell the trip matrix to use this trip for all of its routing options */
PCMSMatrixSetOptions(matTrip);


Supported Since: PC*MILER|Connect 26

Category: Matrix Functions