Syntax

long PCMSCalculate(Trip trip)


Parameters

Trip trip – Handle to a trip.


Description

Computes the distance for the current trip using the current configuration of the trip. This function requires stops to be added to the trip using PCMSAddStop.


Return Values 

Returns the distance in miles. Precision can be configured in an application-level setting.


Sample Code

PCMSAddStop(trip,"Syracuse, NY");
PCMSAddStop(trip,"Princeton, NJ");
PCMSAddStop(trip,"Charlottesville, VA");
PCMSCalculate(trip);


Supported Since: PC*MILER|Connect 12

Category: Trip Management