Skip to main content

PCMSGetToll

Syntax

int PCMSGetToll(Trip trip)

Parameters

  • Trip trip – Handle to a trip.

Description

Gets the toll charges for a trip. Available only if the 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

Last updated July 8, 2025.