SampleSnippet PTV_PreferredRoutes
Posted: Mon Sep 30, 2019 1:54 pm
Hi there,
just for those who look or a sample snippet ready to be used with PTV_PreferredRoutes:
Be aware that PTV_PreferredRoutes is available only for some maps.
The preferredRouteBonus is a regular malus value:
Bernd
just for those who look or a sample snippet ready to be used with PTV_PreferredRoutes:
Be aware that PTV_PreferredRoutes is available only for some maps.
Code: Select all
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Profile parent="truckfast" xmlns:ns2="http://www.ptv.de/com/ptvag/xserver/engines/xpoidbaccess">
<FeatureLayer majorVersion='1' minorVersion='0'>
<GlobalSettings>
<Parameter name="preferredRouteBonus" value="-10"></Parameter>
</GlobalSettings>
<Themes>
<Theme id='PTV_PreferredRoutes' enabled='true'>
<PropertyValue id="preferredRouteType" value="18"></PropertyValue>
</Theme>
</Themes>
</FeatureLayer>
<Routing majorVersion="2" minorVersion="0">
<Course>
<AdditionalDataRules enabled='true'/>
</Course>
</Routing>
</Profile>
- negative values between -99 and -1 will decrease the virtual costs of the corresponding route segments which causes them to be more attractive
- We can't give a definitive recommendation for the value that fits your requirements best - that's something you have to play with
- The preferredRouteType describes the character of a segment, e.g. category 18 means "Local route network that is designated for trucks with an origin and destination within a borough."
Bernd