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