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.

AVOID_HIGHWAYS on xTour

Postby i.kobeissy » Mon Feb 04, 2019 6:24 pm

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
i.kobeissy
 
Posts: 6
Joined: Wed Jan 31, 2018 1:15 pm

Re: AVOID_HIGHWAYS on xTour

Postby Bernd Welter » Tue Feb 05, 2019 9:54 am

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
Bernd Welter
Senior Technical Consultant Developer Components
PTV GROUP - Germany

Bernd at Youtube
User avatar
Bernd Welter
Site Admin
 
Posts: 1335
Joined: Mon Apr 14, 2014 10:28 am

Re: AVOID_HIGHWAYS on xTour

Postby i.kobeissy » Tue Feb 05, 2019 6:00 pm

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
i.kobeissy
 
Posts: 6
Joined: Wed Jan 31, 2018 1:15 pm

Re: AVOID_HIGHWAYS on xTour

Postby Bernd Welter » Wed Feb 06, 2019 8:18 am

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
Bernd Welter
Senior Technical Consultant Developer Components
PTV GROUP - Germany

Bernd at Youtube
User avatar
Bernd Welter
Site Admin
 
Posts: 1335
Joined: Mon Apr 14, 2014 10:28 am


Return to PTV xTourServer

cron