PCMSMatrixGetCell
Syntax
int PCMSMatrixGetCell(long origIndex, long destIndex, int rptType, char *pBuffer, int bufSize)
Parameters
- long origIndex – The index of the origin stop.
- long destIndex – The index of the destination stop.
- int rptType – A value indicating what type of report information should be returned. Value range is 0 – 9, with the following types of data:
-
- Mileage – double
-
- Travel Time – double
-
- Mileage (air mileage) – double
-
- Toll Miles – double
-
- Toll Amount – double
-
- Miles by State – a string starting with
<
and ending with>
. The contents of the string will be state:mileage. Example:<NJ:51.2|NY:34.2>
- Miles by State – a string starting with
-
- Toll Miles by State – same as above
-
- Computation Time – integer in milliseconds
-
- Initiated Route Computation – true if tried to run route
-
- Successful Route Computation – true if the route computation is successful
-
- char *pBuffer – A pre-allocated memory buffer that will be filled with a delimited string containing the desired information.
- int bufSize – The number of bytes in the buffer.
Description
Allows the retrieval of certain pieces of information from a specific cell in the trip matrix.
Return Values
An integer return code. Negative one (-1) indicates that the product is not licensed for RouteMatrix.
Supported Since: PC*Miler Connect 26
Category: Matrix Functions