In What Format Is Data Provided?

TPEG’s format is designed to keep a small data footprint in order to conserve bandwidth. The data returned from INRIX TPEG Connect has the following characteristics:

Format and Data

The format contains data that has been written as a stream of binary data. This means that the data is not human-readable, but it is very compact, and very fast for software to decode once it is received. Download an example TPEG binary file here: TPEG-payload. Although it has a .txt extension, it is a binary file. Below is an example of data that has been converted into a human-readable XML structure. This illustrates the type of data that you will find in the binary.

   <ApplicationRootMessageBin byteSize="39" byteCRChex="6dfb" statusLevel="Success" statusDescription="Is ok!">ACUAAQgHMwBQoS1jAAMHBgYOkkIECQIPAAIMCy+UDQEWAYkAKB8Y</ApplicationRootMessageBin>
   <ApplicationRootMessageML xmlns:tec="" xmlns:mmc="" xmlns:lrc="" xmlns:tmc="" xmlns:xsi="" xsi:schemaLocation=" TEC_3_0.xsd MMC_1_1.xsd LRC_1_0.xsd TMC_0_0.xsd" xsi:type="tec:TECMessage">
      <tec:mmt xsi:type="mmc:MessageManagementContainer">
         <tec:effectCode tec:table="tec001_EffectCode" tec:code="6" tec:alias="StationaryTraffic" />
      <tec:loc xsi:type="lrc:ProblemLocation">
         <lrc:TMCLocationReference lrc:direction="false" lrc:locationTableNumber="1" lrc:locationID="12180" lrc:countryCode="13" lrc:bothDirections="false" lrc:extent="1" lrc:locationTableVersion="72">
            <lrc:PreciseTMCInformation lrc:hazardDistance1="31" lrc:problemLength1="24" />

Compression and Encryption

TPEG data also has the option to be compressed and encrypted. Compression allows for faster transmittal of the data, and encryption prevents unauthorized access to the vehicle’s information, such as location. Compression and encryption is performed on the get-message response. Note: Compression is configured by the setup of the vendor. Encryption is specified in the InitSession call. The diagram below illustrates how TPEG data is compressed and encrypted. Note that you must perform compression before encryption. Similarly, you must perform decryption before decompression.

The structure of the encrypted buffer is shown in the following diagram:

Note: C# and Java handle the padding differently. When encryption is disabled, several parts of the buffer are no longer necessary. The following diagram displays gray boxes for the parts that are not present when encryption is disabled. The response is simply gzipped.

  Previous: For What Locations Does INRIX TPEG Return Data?
Next: What Data Does INRIX TPEG Provide?