Syntax
void PCMSSetCalcType (Trip trip, int routeType)
Parameters
Trip trip – Handle to a trip.
int routeType – Sets the routing method using the Simple Routing Calculations constants.
Description
Sets the trip’s current routing method. This function resets the vehicle type, so call it before, not after, PCMSSetVehicleType to avoid unpredictable results.
Return Values
None
Sample Code
Trip trip = PCMSNewTrip(server); PCMSSetRouteLevel(trip, TRUE); // turn streets on PCMSAddStop(trip,"Philadelphia, PA"); PCMSAddStop(trip,"Hamilton, NJ"); PCMSAddStop(trip,"Manhattan,NY"); PCMSSetCalcType(trip, CALC_AVOIDTOLL); PCMSSetCalcType(trip, CALC_NATIONAL); PCMSCalculate(trip);
Supported Since: PC*MILER Connect 12
Category: Trip Options