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
AVOID_HIGHWAYS on xTour
- Bernd Welter
- Site Admin
- Posts: 2695
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
Re: AVOID_HIGHWAYS on xTour
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:
Best regards,
Bernd
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>
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...
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...
-
- Posts: 24
- Joined: Wed Jan 31, 2018 1:15 pm
Re: AVOID_HIGHWAYS on xTour
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
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
- Bernd Welter
- Site Admin
- Posts: 2695
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
Re: AVOID_HIGHWAYS on xTour
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
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...
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...