trip PCMSNewTripWithRegion(PCMServerID serv, const char* regionID)


PCMServerID serv – The PC*MILER server ID.

const char *regionID – Supplies the region.



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");
PCMSAddStop(trip, HOME);
PCMSAddStop(trip, WORK);
PCMSSetCost(trip, 100);
PCMSSetCustomMode(trip, true);
return PCMSCalculate(trip);

Supported Since: PC*MILER Connect 15

Category: Trip Management