void PCMSDeleteTrip(Trip trip)


Trip trip – Handle to a trip.



Deletes the trip associated with the trip identifier. This function will free all resources associated with a trip handle created with PCMSNewTrip. All geocoding results, the stop list, and trip options will be deleted.  All trips must be deleted when no longer in use to prevent potential memory leaks and performance issues. 

Return Values 


Sample Code 

/* Create a new trip */
        shortTrip = PCMSNewTrip(server);
/* Run a route calculation */
        distance = PCMSCalcTrip(shortTrip, "Princeton, NJ", "Chicago, IL");
            printf ("Practical route in miles: %f\n", distance);
/* Free up the trip before returning. */

Supported Since: PC*MILER Connect 12

Category: Trip Management