Use Cases > PTV xTour > How to Use High-Performance Routing

How to Use High-Performance Routing

High-performance routing is based on pre-calculated routing networks that use a pre-defined map and route calculation profile instead of conventional road networks. Using pre-calculated routing networks may be less flexible, but provides a huge advantage in accessing times. Especially for large distance matrix calculation instances, the speed-up is crucial.

Benefits

Prerequisites

Expanding the License Scope

In order to use high-performance routing with the PTV xServer, you need to ensure that the following licence keys are set:

You can check the license content once the server has been started in the management console.

Feature matrix for high-performance routing

PTV xDima Server, PTV xTerritory Server, and PTV xTour Server support high-performance routing for all methods. The table below shows the methods which support high-performance routing in PTV xRoute Server.

service method high-performance routing
calculateRouteInfo x
calculateBulkRouteInfo x
calculateRoute x
calculateExtendedRoute x
calculateTour -
calculateAdvancedTour x
calculateMatrixInfo x
calculateReachableObjects -
searchForReachableObjects -
calculateIsochrones -

Configuration Guide

Generate high-performance routing networks

A separate high-performance routing network has to be generated for each configuration of map and route calculation profile that should be used. Further information on how to generate high-performance routing networks can be found in the section Technical Concepts/About High-Performance Routing.

Configure xServer

High-performance routing networks are generated for distance calculation profiles (e.g dimaTruck or truckfast), the corresponding .xml file has to be in the conf/profiles folder of the PTV xServer.

If high-performance routing is configured it is used whenever possible, the decision is based on the profile name. If routes are calculated using a XML profile for which a high-performance routing network is available, the pre-calculated routing network will be used. This means especially that even if the profile has changed on the file system, only the parameters that are stored in the routing network are considered.

PTV xDima Server

PTV xRoute Server

PTV xRoute Server has various possibilities to configure parameters for route calculation, which complicates the decision when to use high-performance routing. So the basic policy is: if there are any changes to the effective profile, conventional routing will be used. In more detail: high-performance routing cannot be used if ...

PTV xTerritory Server

PTV xTour Server

Troubleshooting:

PTV xRoute Server

To check the correct usage of high-performance routing, DEBUG logging has to be enabled. The logging configuration

logger.ptvag.level=INFO
has to be changed to DEBUG in both files xroute/conf/module-logging.properties and xroute/conf/server-logging.properties.

Other PTV xServer

For troubleshooting enable engine logs by altering the log level

log4j.logger.DimaCtrl=INFO,F
in conf/logging.properties. The engine log will be printed to logs/engine.log.