Syntax
void PCMSSetCalcTypeEx (Trip trip, int rtType, int optFlags, in vehType)
Parameters
Trip trip – Handle to a trip.
int rtType – The route type: Practical, Shortest or Air. (See values below.)
int optFlags – The route options. With either Practical or Shortest routing, this can be AvoidToll, National or both. (See values below.)
int vehType – The vehicle type, can be Truck or Auto. (See values below.)
Extended Routing Calculations | Value (Decimal) |
CALCEX_TYPE_PRACTICAL | 1 |
CALCEX_TYPE_SHORTEST | 2 |
CALCEX_TYPE_AIR | 4 |
CALCEX_OPT_AVOIDTOLL | 256 |
CALCEX_OPT_NATIONAL | 512 |
CALCEX_VEH_TRUCK | 0 |
CALCEX_VEH_AUTO | 16777216 |
Description
Sets the trip’s routing method when route type combinations are desired. This API is a more comprehensive alternative to PCMSSetCalcType.
PCMSSetCalcType treats Route Options in the PC*MILER user interface (such as State + National Network, Toll Discouraged, and POV) as separate, mutually exclusive route types. For example, if the 53-Foot Semitrailer profile—which includes the State + National Network option—is loaded first and then PCMSSetCalcType is called to set the route type to Shortest, State + National Network routing will be turned off.
Using PCMSSetCalcTypeEx, you can set the route type to Shortest and specify the continued use of the State + National Network.
Return Values
None
Supported Since: PC*MILER Connect 17
Category: Trip Options