Syntax 

int PCMSGetToll(Trip trip)


Parameters 

Trip trip – Handle to a trip.


Description

Gets the toll charges for a trip. Available only if the PC*MILER|Tolls add-on module is installed.


Return Values 

Returns total toll charges in cents. -1 indicates an invalid trip ID.

 

Sample Code

/* get total tolls on all-cash basis */
    PCMSSetTollMode(trip1, TOLL_CASH);
    TollsTotal = PCMSGetToll(trip1) / 100.0;
    printf("All-cash tolls = $%.2f\n", TollsTotal);


Supported Since: PC*MILER|Connect 21

Category: Trip Management