xRoute1 - Different responses for exact same request

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
huellif
Posts: 7
Joined: Mon Feb 19, 2018 7:51 am

xRoute1 - Different responses for exact same request

Post by huellif »

Hello,

we are using xRoute version 1.30.0.0 with map version EUR2021_2H.

This exact same SOAP-Request:

Code: Select all

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
	<soap:Body>
		<ns4:calculateExtendedRoute xmlns:ns0="http://wrappertypes.service.jabba.ptvag.com"
                          			xmlns:ns1="http://common.xserver.ptvag.com"
                          			xmlns:ns3="http://xroute.xserver.ptvag.com"
                          			xmlns:ns4="http://types.xroute.xserver.ptvag.com"
                          			xmlns:ns2="http://baseservices.service.jabba.ptvag.com"
                          			xmlns:ns6="http://exception.core.jabba.ptvag.com">
			<ns4:ArrayOfWaypointDesc_1>
				<ns3:WaypointDesc fuzzyRadius="0"
                					linkType="AUTO_LINKING">
					<ns3:wrappedCoords>
						<ns1:Point>
							<ns1:point y="50.3203"
         								x="11.9244"/>
						</ns1:Point>
					</ns3:wrappedCoords>
					<ns3:wrappedSegmentID xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                    						xsi:nil="true"/>
				</ns3:WaypointDesc>
				<ns3:WaypointDesc fuzzyRadius="0"
                					linkType="AUTO_LINKING">
					<ns3:wrappedCoords>
						<ns1:Point>
							<ns1:point y="52.51603"
         								x="13.37693"/>
						</ns1:Point>
					</ns3:wrappedCoords>
					<ns3:wrappedSegmentID xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                    						xsi:nil="true"/>
				</ns3:WaypointDesc>
			</ns4:ArrayOfWaypointDesc_1>
			<ns4:ArrayOfRoutingOption_2>
				<ns3:RoutingOption value="true"
                 					parameter="COUNTRY_ENCODING"/>
				<ns3:RoutingOption value="true"
                 					parameter="ALLOW_SEGMENT_VIOLATIONS"/>
				<ns3:RoutingOption value="2500"
                 					parameter="COST_OF_SEGMENT_VIOLATIONS"/>
				<ns3:RoutingOption value="ISO2"
                 					parameter="COUNTRY_ENCODING"/>
			</ns4:ArrayOfRoutingOption_2>
			<ns4:ArrayOfExceptionPath_3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                          				xsi:nil="true"/>
			<ns4:ResultListOptions_4 featureDescriptions="true"
                       				totalRectangle="true"
                       				boundingRectanglesOffset="0"
                       				boundingRectanglesC="0"
                       				tollManoeuvres="false"
                       				manoeuvreGroups="false"
                       				urbanManoeuvres="false"
                       				brunnelManoeuvres="false"
                       				manoeuvreAttributes="false"
                       				segmentAttributes="true"
                       				segments="true"
                       				dynamicInfo="false"
                       				detailLevel="LESS_IMPORTANT"
                       				polygon="true"
                       				binaryPathDesc="false"
                       				nodes="true"
                       				texts="true"
                       				manoeuvres="true"/>
			<ns4:CountryInfoOptions_5 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                        				xsi:type="ns3:CountryInfoVehicleOptions"
                        				tollTotals="true"
                        				namedToll="true"
                        				calculatePartTollCosts="false"
                        				tollDate="2021-07-08T11:37:51.199+02:00"
                        				allEuro="true"
                        				detailedTollCosts="true">
				<ns3:wrappedOptions>
					<ns3:VehicleOption value="5"
                 						parameter="NUMBER_OF_AXLES"/>
					<ns3:VehicleOption value="TRU"
                 						parameter="TYPE"/>
					<ns3:VehicleOption value="40000"
                 						parameter="TOTAL_WEIGHT"/>
					<ns3:VehicleOption value="EURO_6"
                 						parameter="EMISSION_CLASS"/>
				</ns3:wrappedOptions>
			</ns4:CountryInfoOptions_5>
			<ns4:CallerContext_6>
				<ns2:wrappedProperties>
					<ns2:CallerContextProperty value="truckfast"
                         						key="Profile"/>
					<ns2:CallerContextProperty value="OG_GEODECIMAL"
                         						key="CoordFormat"/>
					<ns2:CallerContextProperty value="<Profile xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
  <FeatureLayer majorVersion='1' minorVersion='0'>
    <Themes>
      <!--enable the PTV_TruckAttributes theme-->
      <Theme id='PTV_TruckAttributes' enabled='true'/>
    </Themes>
  </FeatureLayer>
  <Routing majorVersion='2' minorVersion='0'>
    <Course>
      <!--enable additional data rules to enable routing with additional content like feature layer-->
      <AdditionalDataRules enabled='true'>
      </AdditionalDataRules>    </Course>
    <Vehicle>      <Physical>        <Weight emptyWeight="2200.0" totalPermittedWeight="4000.0"/>        <Axle axleLoad="1800.0" numberOfAxles="5"/>        <Dimension height="250.0" length="1360.0" width="240.0"/>      </Physical>      <Legal>        <LegalCondition isDelivery="true"/>      </Legal>    </Vehicle>  </Routing>
</Profile>"
                         						key="ProfileXMLSnippet"/>
				</ns2:wrappedProperties>
			</ns4:CallerContext_6>
		</ns4:calculateExtendedRoute>
	</soap:Body>
</soap:Envelope>
is returning different answers:
a: 285,80 km toll for 53,49 Euro
or
b: 311,20 km toll for 0,0 Euro

The total way length always is 313,02 km and the route seems to be the same.

Can you tell me what's the problem?
I am sending the exact same request multiple times one after the other or at the exact same time, the results are random.

Best Regards,
Fabian
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: xRoute1 - Different responses for exact same request

Post by Bernd Welter »

Hello Fabian,

afaik the task is in process as a regular support ticket now. Let's see what we can detect.
If the response is of public interest we can share it with the community.

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:
huellif
Posts: 7
Joined: Mon Feb 19, 2018 7:51 am

Re: xRoute1 - Different responses for exact same request

Post by huellif »

If anyone else is facing this problem: Our toll data was broken, we mixed different and incompatible map and toll versions.

After cleaning up everything is working fine, thanks to the PTV support!
Post Reply