Syntax
int PCMSGetCost (Trip trip)
Parameters
Trip trip – Handle to a trip.
Description
Gets the trip’s cost per mile/kilometer.
Return Values
Returns the trip’s cost per mile/kilometer.
Sample Code
NewSection("PCMSSetCost, PCMSGetCost"); PCMSClearStops(trip); PCMSAddStop(trip, HOME); PCMSAddStop(trip, WORK); int origCost = PCMSGetCost(trip); PCMSSetCost(trip, 100); ret = PCMSCalculate(trip); TestErr(ret > 0, "PCMSCalculate(trip)");
Supported Since: PC*MILER|Connect 12
Category: Trip Options