Skip to main content

PCMSAddStop

Syntax

int PCMSAddStop(Trip trip, const char *stop)`

Parameters

Trip trip – Handle to a trip.

const char *stop – A geocodable location.

Description

Adds stops to the trip before calling PCMSCalculate to calculate the route. Stops are geocoded using the default match at a confidence level of one or two. The geocoding done in this API is equivalent to calling PCMSLookup with exactMatch equal to 2.

All trips require a minimum of two stops to run properly, but the maximum number of stops is bound by the available resources of the machine.

Return Values

Standard returns

Sample Code

PCMSAddStop(trip, "Philadelphia, PA");
PCMSAddStop(trip, "Hamilton, NJ");
PCMSAddStop(trip, "Manhattan,NY");
PCMSAddStop(trip, "40.420833N,74.561111W");
PCMSCalculate(trip);

Supported Since: PC*Miler Connect 12

Category: Trip Management

Last updated July 8, 2025.