Skip to main content

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:
      1. Mileage – double
      1. Travel Time – double
      1. Mileage (air mileage) – double
      1. Toll Miles – double
      1. Toll Amount – double
      1. 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>
      1. Toll Miles by State – same as above
      1. Computation Time – integer in milliseconds
      1. Initiated Route Computation – true if tried to run route
      1. 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

Last updated July 8, 2025.