AVOID_HIGHWAYS on xTour

This forum deals with any kind of trip optimization whether it is automatic planning or manual dispatching, refering to transport orders or service planning.
Post Reply
i.kobeissy
Posts: 24
Joined: Wed Jan 31, 2018 1:15 pm

AVOID_HIGHWAYS on xTour

Post 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
User avatar
Bernd Welter
Site Admin
Posts: 2564
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: AVOID_HIGHWAYS on xTour

Post 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
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany

Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning... :twisted:
i.kobeissy
Posts: 24
Joined: Wed Jan 31, 2018 1:15 pm

Re: AVOID_HIGHWAYS on xTour

Post 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
User avatar
Bernd Welter
Site Admin
Posts: 2564
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: AVOID_HIGHWAYS on xTour

Post 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
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany

Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning... :twisted:
Post Reply