Syntax 

trip PCMSNewTrip (PCMServerID serv)


Parameters

PCMServerID serv – The PC*MILER server ID.


Description

Creates a new PC*MILER trip. The trip is created in the default region using that regions default routing profile.


Return Values 

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


Sample Code

PCMServerID server = PCMSOpenServer(NULL, NULL);
Trip trip = PCMSNewTrip(server);
PCMSAddStop(trip,"Philadelphia, PA");
PCMSAddStop(trip,"Hamilton, NJ");
PCMSAddStop(trip,"Manhattan,NY");
PCMSCalculate(trip);


Supported Since: PC*MILER|Connect 12

Category: Trip Management