Accessing distance matrix contents with binary encoded arrays

This use-case describes how to create a distance matrix and get the content in encoded format. As the content is in the binary compact encoded arrays, here is shown how to get in uncoded format

Benefits

  • Using the getDistanceMatrix with binary encoded arrays reduces the size of the data exchange especially for large contents.

Prerequisites

Please ensure following prerequisites are fulfilled before you start with the use case:

  • Installed and licensed PTV xDima service

Programming Guide

Javascript

This below Javascript shows how to use in a simple way the uncoding process:

Java

The following code shows an example in Java:

C#

The following code shows an example in C#: