Skip to main content

PCMSNewTrip

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 region’s 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

Last updated July 19, 2025.