Page 1 of 1

AVOID_HIGHWAYS on xTour

Posted: 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

Posted: 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:

Code: Select all

<?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

Posted: 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

Posted: Wed Feb 06, 2019 8:18 am
by Bernd Welter
Here's some helpful text...
https://xserver.ptvgroup.com/forum/view ... 2646#p2646

The classes are also listed in the xroute network class enumeration
Best regards,
Bernd