Skip to main content

PCMSNewTripWithRegion

Syntax

trip PCMSNewTripWithRegion(PCMServerID serv, const char* regionID)`

Parameters

PCMServerID serv – The PC*Miler server ID.

*const char regionID – Supplies the region.

Description

Creates a new PC*Miler trip within a specified region. (A PC*Miler Worldwide license, and the corresponding data is required to create trips outside of North America.) The trip is created using the default route profile for the given region.

Return Values

Returns a trip handle to be passed into subsequent API calls, or 0 if there is a failure.

Sample Code

Trip tripEU = PCMSNewTripWithRegion(server, "Europe");
PCMSSetExchRate(trip,9929);
PCMSAddStop(trip, HOME);
PCMSAddStop(trip, WORK);
PCMSSetCost(trip, 100);
PCMSSetCustomMode(trip, true);
return PCMSCalculate(trip);

Supported Since: PC*Miler Connect 15

Category: Trip Management

Last updated July 19, 2025.