Syntax
void PCMSDeleteTrip(Trip trip)
Parameters
Trip trip – Handle to a trip.
Description
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
None
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. */ PCMSDeleteTrip(shortTrip);
Supported Since: PC*MILER Connect 12
Category: Trip Management