Ferry distance

This forum deals with any kind of routing computation whether it is simple A:B-routing, calculation of isochrones, simple matrix computation or nearest search.
Post Reply
User avatar
krzysiek mbis
Posts: 37
Joined: Thu Aug 11, 2016 9:41 am

Ferry distance

Post by krzysiek mbis »

Hi,
I’m working on route ferry info and I can’t generate Ferry distance. There is no problem with ferry time.
For example when I run:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><calc ... endedRoute xmlns="http://types.xroute.xserver.ptvag.com"><ArrayOfWaypointDesc_1><WaypointDesc linkType="NEXT_SEGMENT" fuzzyRadius="10000" xmlns="http://xroute.xserver.ptvag.com"><wrappedCoords><Point xmlns="http://common.xserver.ptvag.com"><kml xsi:nil="true"/><point x="2.4888298429" y="50.906819571"/></Point></wrappedCoords><nodeID xsi:nil="true"/><wrappedRoutingOptions xsi:nil="true"/><wrappedSegmentID xsi:nil="true"/><wrappedVehicleOptions xsi:nil="true"/><viaType xsi:nil="true"/></WaypointDesc><WaypointDesc linkType="NEXT_SEGMENT" fuzzyRadius="10000" xmlns="http://xroute.xserver.ptvag.com"><wrappedCoords><Point xmlns="http://common.xserver.ptvag.com"><kml xsi:nil="true"/><point x="0.96315762602" y="51.112424767"/></Point></wrappedCoords><nodeID xsi:nil="true"/><wrappedRoutingOptions xsi:nil="true"/><wrappedSegmentID xsi:nil="true"/><wrappedVehicleOptions xsi:nil="true"/><viaType xsi:nil="true"/></WaypointDesc></ArrayOfWaypointDesc_1><ArrayOfRoutingOption_2><RoutingOption parameter="OPTIMIZATION" value="90" xmlns="http://xroute.xserver.ptvag.com"/><RoutingOption parameter="AVOID_HIGHWAYS" value="0" xmlns="http://xroute.xserver.ptvag.com"/><RoutingOption parameter="AVOID_TOLLROADS" value="0" xmlns="http://xroute.xserver.ptvag.com"/><RoutingOption parameter="AVOID_VIGNETTEROADS" value="0" xmlns="http://xroute.xserver.ptvag.com"/><RoutingOption parameter="AVOID_FERRIES" value="0" xmlns="http://xroute.xserver.ptvag.com"/><RoutingOption parameter="AVOID_URBAN_AREAS" value="0" xmlns="http://xroute.xserver.ptvag.com"/><RoutingOption parameter="AVOID_RAMPS" value="0" xmlns="http://xroute.xserver.ptvag.com"/><RoutingOption parameter="COUNTRY_ENCODING" value="ISO2" xmlns="http://xroute.xserver.ptvag.com"/><RoutingOption parameter="ROUTE_LANGUAGE" value="PL" xmlns="http://xroute.xserver.ptvag.com"/></ArrayOfRoutingOption_2><ArrayOfExceptionPath_3 xsi:nil="true"/><ResultListOptions_4 segmentAttributes="true" segments="true" polygon="true" totalRectangle="false" urbanManoeuvres="false" texts="true" tollManoeuvres="false" nodes="false" brunnelManoeuvres="false" detailLevel="STANDARD" dynamicInfo="false" binaryPathDesc="false" boundingRectanglesC="0" boundingRectanglesOffset="0" manoeuvreGroups="false" manoeuvres="true" manoeuvreAttributes="true"><cenEmissionConfiguration xsi:nil="true" xmlns="http://xroute.xserver.ptvag.com"/><destDetail xsi:nil="true" xmlns="http://xroute.xserver.ptvag.com"/><emissions xsi:nil="true" xmlns="http://xroute.xserver.ptvag.com"/><hbefaType version="HBEFA_2_1" xmlns="http://xroute.xserver.ptvag.com"/><startDetail xsi:nil="true" xmlns="http://xroute.xserver.ptvag.com"/></ResultListOptions_4><CountryInfoOptions_5 xsi:type="q1:CountryInfoVehicleOptions" detailedTollCosts="true" calculatePartTollCosts="false" allEuro="false" xmlns:q1="http://xroute.xserver.ptvag.com"><q1:wrappedReductionIDs xsi:nil="true"/><q1:wrappedTollScenarios xsi:nil="true"/><q1:wrappedOptions><q1:VehicleOption parameter="TYPE" value="TRU"/><q1:VehicleOption parameter="TOTAL_WEIGHT" value="40000"/><q1:VehicleOption parameter="EMISSION_CLASS" value="EURO_3"/></q1:wrappedOptions></CountryInfoOptions_5><CallerContext_6><wrappedProperties xmlns="http://baseservices.service.jabba.ptvag.com"><CallerContextProperty key="CoordFormat" value="OG_GEODECIMAL"/><CallerContextProperty key="Profile" value="truckfast"/><CallerContextProperty key="ProfileXMLSnippet" value="<?xml version="1.0" encoding="UTF-8"?>
<Profile>
<Routing majorVersion="2" minorVersion="0">
<Vehicle>
<Physical>
<Weight totalPermittedWeight="40000"/>
<Axle axleLoad="7000"/>
</Physical>
<Load loadType="GOODS"/>
<Speed>
<SpeedRangeByNetworkClass minimumSpeed="55" maximumSpeed="89" />
<SpeedRangeByNetworkClass minimumSpeed="30" maximumSpeed="85" />
<SpeedRangeByNetworkClass minimumSpeed="23" maximumSpeed="70" />
<SpeedRangeByNetworkClass minimumSpeed="20" maximumSpeed="70" />
<SpeedRangeByNetworkClass minimumSpeed="18" maximumSpeed="60" />
<SpeedRangeByNetworkClass minimumSpeed="15" maximumSpeed="30" />
<SpeedRangeByNetworkClass minimumSpeed="9" maximumSpeed="16" />
<SpeedRangeByNetworkClass minimumSpeed="4" maximumSpeed="6" />
</Speed> </Vehicle>
<Course>
<AdditionalDataRules enabled="true" layerName="TruckAttributes">
<VehicleSpecific enabled="true">
<Malus residential="2500"/>
</VehicleSpecific>
<SegmentSpecific useFerryLength="true"/> </AdditionalDataRules>
</Course>
</Routing>
<FeatureLayer majorVersion="1" minorVersion="0"><Themes><Theme id="PTV_TruckAttributes" enabled="true"/></Themes></FeatureLayer>
</Profile>
"/></wrappedProperties></CallerContext_6></calculateExtendedRoute></s:Body></s:Envelope>

This route is via ferry from FR to GB, and returned segments with ferry informations are:
<ns3:RouteListSegment countryCode="FR" iuCode="33" vNorm="0" nC="MOTORWAY" accDist="58612" accTime="2893" dirInfoIdx="-1" streetNameIdx="-1" streetNoIdx="-1" nodeC="3" firstNodeIdx="444" polyC="9" firstPolyIdx="515">
<ns3:segmentAttr lowEmissionZoneType="0" isPedestrianZone="false" hasSeparator="false" hasExtraToll="false" hasVignetteTruck="false" hasVignetteCar="false" hasTollTruck="false" hasTollCar="false" isBlockedTruck="false" isBlockedCar="false" isFerry="true" brunnelCode="NOTHING"/>
</ns3:RouteListSegment>
<ns3:RouteListSegment countryCode="GB" iuCode="44" vNorm="0" nC="MOTORWAY" accDist="58612" accTime="8293" dirInfoIdx="-1" streetNameIdx="-1" streetNoIdx="-1" nodeC="3" firstNodeIdx="446" polyC="167" firstPolyIdx="523">
<ns3:segmentAttr lowEmissionZoneType="0" isPedestrianZone="false" hasSeparator="false" hasExtraToll="false" hasVignetteTruck="false" hasVignetteCar="false" hasTollTruck="false" hasTollCar="false" isBlockedTruck="false" isBlockedCar="false" isFerry="true" brunnelCode="NOTHING"/>

As you can see, accDist is the same, only accTime changed.
Could you be so kind and tell me what I have to do to gather ferry distance.
Krzysiek Paziewski
.Net Developer/Team Leader at Marcos Bis
Katowice, Silesian District, Poland
User avatar
Bernd Welter
Site Admin
Posts: 2564
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Ferry distance

Post by Bernd Welter »

Hello Chris,

the reason why you don't get the ferry distance with this approach is simple: the distance won't appear on the tachograph.
So the more interesting question is about the expectation: what is the consequence behind a non-zero value?

Maybe we can derive an approach once we know what you need it for...

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:
User avatar
krzysiek mbis
Posts: 37
Joined: Thu Aug 11, 2016 9:41 am

Re: Ferry distance

Post by krzysiek mbis »

It's only as an info for map users. Some of them asked about ferry distance.
Krzysiek Paziewski
.Net Developer/Team Leader at Marcos Bis
Katowice, Silesian District, Poland
User avatar
Bernd Welter
Site Admin
Posts: 2564
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Ferry distance

Post by Bernd Welter »

in this case I recommend to compute the airline distance based on the ENTER FERRY and EXIT FERRY manoeuvres...
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