Syntax 

int PCMSMatrixAddOrigin(const char  *stop)


Parameters 

const char *stop – A geocodable location.  


Description

Configures RouteMatrix to only calculate a single row of output for each stop that is added, instead of the whole matrix. This allows for faster transaction times. It should be inserted just before the API that calculates the trip matrix (PCMSMatrixCalculate). 


Return Values 

An integer return code. Negative one (-1) indicates that the product is not licensed for RouteMatrix.


Sample Code

Log_Pcmstest("Add Trenton, NJ to RouteMatrix as Origin");
PCMSMatrixAddOrigin("Trenton,NJ");

Log_Pcmstest("Add 07102 to RouteMatrix as Origin");
PCMSMatrixAddOrigin("07102");


Supported Since: PC*MILER Connect 29

Category: Matrix Functions