Skip to main content

PCMSGetCalcTypeEx

Syntax

int PCMSGetCalcTypeEx (Trip trip, int *pRtType, int *pOptFlags, int *pVehType)`

Parameters

Trip trip – Handle to a trip.

int *pRtType – The route type: Practical, Shortest, or Air. (See values below.)

int *pOptFlags – The route options. With either Practical or Shortest routing, this can be AvoidToll, National or both. (See values below.)

int *pVehType – The vehicle type, can be Truck or Auto. (See values below.)

Extended Routing Calculations

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

Gets the trip’s current routing method when PCMSSetCalcTypeEx has been used.

Return Values

Standard Returns

Supported Since: PC*Miler Connect 17

Category: Trips Options

Last updated July 8, 2025.