Syntax
int PCMSGetSegment(Trip trip, int segNum, struct segmentStruct *aSegment)
Parameters
Trip trip – Handle to a trip.
int segNum – Index of the segment to be pulled from a Detailed Report. If the segNum equals -1, then segments for the next trip leg are returned, else lines for the segNum are returned.
struct segmentStruct *aSegment – The structure used to parse the segment data.
struct segmentStruct
{
char stateAbbrev[2];
BOOL toll;
char dir[2];
char route[32];
int miles;
int minutes;
char interchange[32];
};
Description
Gets a report segment, which is a single line from a Detailed Report.
Return Values
Sample Code
Supported Since: PC*MILER Connect 15
Category: Trip Reports