Use Cases > PTV xRoute > How to Use Routing Parameters

How to Use Routing Parameters

Routing with Optimisation

The optimization factor is the basis for the route calculation. It is a value between 0 and 100. Zero means the shortest and 100 the fastest route. A value in between is a combination of both options (weighted value).

Routing with Speed Profiles

PTV xRoute Server contains a set of default xml profiles such as carfast, truckfast, delivery, emergency, pedestrian, bicycle etc. According to the selected profiles, the route results can vary depending on the defined vehicle properties which are optimally set for each profile by PTV.

One of the main use cases for the Unified Profile Mechanism (see chapter 2.5) is to manipulate the speed profile of a vehicle. The speed profile is defined as a string of 16 comma-separated values representing the minimum and maximum speed values [km/h] per network class.

Please note that the procedure interpolates automatically between the minimum and maximum. In total, 64 combinations are possible regarding speed values and network classes (8 speed values combined with 8 network classes). The following table shows the default speed profiles which are provided by PTV xRoute Server (profiles are located in the conf folder).

Profile name Speed profile
Bicycle 20,20,20,20,20,20,20,20,13,13,13,13,13,13,15,15
Bicycle-One-Way 20,20,20,20,20,20,20,20,13,13,13,13,13,13,15,15
Carfast 135,70,125,35,85,25,60,25,50,20,40,18,16,9,6,4
Carslow 105,65,100,33,75,25,55,25,48,20,40,18,16,9,6,4
Default 135,70,125,35,85,25,60,25,50,20,40,18,16,9,6,4
Delivery 135,70,125,35,85,25,60,25,50,20,40,18,16,9,6,4
Emergency

135,70,125,35,85,25,60,25,50,20,40,18,16,9,6,4

Pedestrian 0,0,0,0,5,5,5,5,5,5,5,5,5,5,5,5
Truckfast 80,55,65,30,55,23,45,20,40,18,30,15,12,7,6,4
Truckslow

70,50,60,28,52,23,42,20,38,18,28,15,12,7,6,4

Routing with Avoid / Preferred Parameters

It is also possible to avoid / prefer single network classes or segments with particular attributes like toll or ramps. The following parameters are avoidable segments:

The avoidance is implemented by a malus or rather a bonus value in percent which has to be added to the base cost value of each segment. Legal values are -99 to 2501. Less than 0 means (the minimum value -99 will reduce the cost value to a minimum) the segment is preferred. More than 0 (the maximum value is 2501) means the segment is blocked. Equal to zero means default alignment (no changes).

Routing with Exception Path

The PTV xRoute Server allows alternative routes to be defined using the class ExceptionPath. Here a relative or absolute malus can be chosen between -99 (absolute preferred) and 2501 (route blocked) in order to calculate alternative routes.

Options for International Routing

PTV xRoute Server offers different functions which are important for international routing.

Both options “exclude countries” and “select exclusive countries” are selectable to change the routing across borders. Countries can either be excluded or selected as exclusive. The next figures show the default routing at first, then exclusive selected: 44, 33, 41, 43 (GB, FR, CH, AT) and finally excluded countries: 33, 49 (FR, GE).