Hello,
can you please advise on where to set preferred types of roads in vehicles profile for calculating a route ( xRoute.calculateExtendedRoute).
Thank you,
Vladimír
Preferred types of roads in vehicle profile
Preferred types of roads in vehicle profile
Vladimír Plachý, DiS.
Developer windows applications
D&Comm s.r.o. - Czech Republic
Developer windows applications
D&Comm s.r.o. - Czech Republic
- Bernd Welter
- Site Admin
- Posts: 2695
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
Re: Preferred types of roads in vehicle profile
Hello Vladimir,
please check this section describing the profiles:
http://xserver.ptvgroup.com/fileadmin/f ... g%7C_____0
Here is a minimalistic snippet
It's not using highways (NC_0 and NC_1 are set to 2501) and doesn't matter to use NC_2..NC_7)
Attention:
Blocking "toll roads" isn't based on Network Class - check this:
http://xserver.ptvgroup.com/fileadmin/f ... Rules_Toll
Furthermore Ferries, Piggyback and MountainPasses have their own settings..
Best regards Bernd
please check this section describing the profiles:
http://xserver.ptvgroup.com/fileadmin/f ... g%7C_____0
Here is a minimalistic snippet
It's not using highways (NC_0 and NC_1 are set to 2501) and doesn't matter to use NC_2..NC_7)
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<Profile>
<Common coordinateFormat="OG_GEODECIMAL" language="en" majorVersion="1" minorVersion="0"/>
<Routing majorVersion="2" minorVersion="0">
<Course>
<BasicDataRules>
<Network rampMalus="10">
<MalusByNetworkClass malus="2501"/>
<MalusByNetworkClass malus="2501"/>
<MalusByNetworkClass malus="0"/>
<MalusByNetworkClass malus="0"/>
<MalusByNetworkClass malus="0"/>
<MalusByNetworkClass malus="0"/>
<MalusByNetworkClass malus="0"/>
<MalusByNetworkClass malus="0"/>
</Network>
</BasicDataRules>
</Course>
</Routing>
</Profile>
Blocking "toll roads" isn't based on Network Class - check this:
http://xserver.ptvgroup.com/fileadmin/f ... Rules_Toll
Furthermore Ferries, Piggyback and MountainPasses have their own settings..
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...
Re: Preferred types of roads in vehicle profile
Side note: in the next version of map and guide internet you can directly export your vehicle to a usable XML profile for xRoute.
Joost Claessen
Senior Technical Consultant
PTV Benelux
Senior Technical Consultant
PTV Benelux
Re: Preferred types of roads in vehicle profile
Motorways is NC_0 and Fast Route is NC_1? And what about those other values NC_x?
Vladimír Plachý, DiS.
Developer windows applications
D&Comm s.r.o. - Czech Republic
Developer windows applications
D&Comm s.r.o. - Czech Republic
- Bernd Welter
- Site Admin
- Posts: 2695
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
Re: Preferred types of roads in vehicle profile
Hello Vlad,
I have limited access at the moment.
Check the data type NetworkClass in the standard API doc. The enum starts with highways and ends up somewhere at "pedestrians and cycle lanes".
Best regards
Bernd
I have limited access at the moment.
Check the data type NetworkClass in the standard API doc. The enum starts with highways and ends up somewhere at "pedestrians and cycle lanes".
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...