Page 1 of 1

AVOID_HIGHWAYS on xTour

PostPosted: Mon Feb 04, 2019 6:24 pm
by i.kobeissy
Hello,

Is there an equivalent to xRoute AVOID_HIGHWAYS (RoutingParameter) in xTour profile just like the usage of the <toll> tag in the dima profile ?

thanks

Re: AVOID_HIGHWAYS on xTour

PostPosted: Tue Feb 05, 2019 9:54 am
by Bernd Welter
Hello Ibrahim,

you can specify the "avoid highway" via profile xml:
The highways belong to the NETWORK CLASS 0 and therefore you can set the MalusByNetworkClass for the NC_0 to the malus value you need. The required key is
Routing/ Course/BasicDataRules/Network/MalusByNetworkClass
Check this minimal snippet: the key with the value 666 is the one you need:
xml code
<?xml version="1.0" encoding="UTF-8"?>
<Profile>
<Routing majorVersion="2" minorVersion="0">
<Course>
<BasicDataRules>
<Network>
<MalusByNetworkClass malus="666"/>
<MalusByNetworkClass malus="10"/>
<MalusByNetworkClass malus="15"/>
<MalusByNetworkClass malus="35"/>
<MalusByNetworkClass malus="40"/>
<MalusByNetworkClass malus="90"/>
<MalusByNetworkClass malus="100"/>
<MalusByNetworkClass malus="100"/>
</Network>
</BasicDataRules>
</Course>
</Routing>
</Profile>

Best regards,
Bernd

Re: AVOID_HIGHWAYS on xTour

PostPosted: Tue Feb 05, 2019 6:00 pm
by i.kobeissy
Hello Bernd,

great, thank you for the quick answer,
I tried to find in the xTour documentation an explanation about all the NETWORK CLASS, but i couldn't find a place where all the eight classes are explained, can you help me with that please ?

Regards

Re: AVOID_HIGHWAYS on xTour

PostPosted: Wed Feb 06, 2019 8:18 am
by Bernd Welter
Here's some helpful text...
viewtopic.php?f=7&t=911&p=2646#p2646

The classes are also listed in the xRoute enumeration docu:
https://xserver.ptvgroup.com/fileadmin/ ... ation.html#com.ptvag.xserver.xroute.NetworkClass%3FTocPath%3DDeveloper's%2520Guide%7CAPI%2520Documentation%7CAPI%2520Documentation%2520PTV%2520xRoute%7CComponent%2520xroute%7CEnumerations%7C_____14

Best regards,
Bernd