Page 1 of 1

Waypoints on specific street being ignored

Posted: Wed Aug 16, 2017 11:39 am
by Ries
Hello!

I have problems with waypoints on the street at 53.699716, 10.748183:

I have a list of waypoints. The first two are positioned on this street, however during routing the second waypoint is being ignored. (Waypoints: {53.69982,10.74839}, {53.69976,10.74798}, {53.69802,10.74977},...)

When I try the "Waypoint Routing" sample (PTV xServer internet Code Sample Browser) I am unable to put any waypoints on this street.

Best regards,
Tobias Ries

Re: Waypoints on specific street being ignored

Posted: Fri Aug 18, 2017 9:12 am
by Bernd Welter
Hello Tobias,

I don't see a reason why this coordinate should fail.
LINESTRING(10.74839 53.69982,10.74798 53.69976,10.74977 53.69802)
LINESTRING(10.74839 53.69982,10.74798 53.69976,10.74977 53.69802)
What do you mean by "I am unable to put any waypoints on this street"? What happens instead?
Can you provide XML requests dealing with this?

Best regards,
Bernd

Re: Waypoints on specific street being ignored

Posted: Fri Aug 18, 2017 10:32 am
by Ries
Hello Bernd,

"I am unable to put any waypoints on this street" concerns the sample "Waypoint Routing" at http://xserver.ptvgroup.com/en-uk/cookb ... e-browser/ :
If I click on the street at 53.699716, 10.748183, the waypoint is created on the neighboring street (B208, Bahnhofsallee).

I'm using C# and calling calculateRoute on xRoute with a WaypointDesc-Array containing the three geocoordinates.
The Soap-Envelope for the routing request looks as follows:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soap:Body>
      <calculateRoute xmlns="http://types.xroute.xserver.ptvag.com">
         <ArrayOfWaypointDesc_1>
            <WaypointDesc xmlns="http://xroute.xserver.ptvag.com" fuzzyRadius="0" linkType="NEXT_NODE">
               <wrappedCoords>
                  <Point xmlns="http://common.xserver.ptvag.com">
                     <kml xsi:nil="true" />
                     <point x="10.74839" y="53.69982" />
                  </Point>
               </wrappedCoords>
               <nodeID xsi:nil="true" />
               <wrappedRoutingOptions xsi:nil="true" />
               <wrappedSegmentID xsi:nil="true" />
               <wrappedVehicleOptions xsi:nil="true" />
               <viaType xsi:nil="true" />
            </WaypointDesc>
            <WaypointDesc xmlns="http://xroute.xserver.ptvag.com" fuzzyRadius="0" linkType="NEXT_NODE">
               <wrappedCoords>
                  <Point xmlns="http://common.xserver.ptvag.com">
                     <kml xsi:nil="true" />
                     <point x="10.74798" y="53.69976" />
                  </Point>
               </wrappedCoords>
               <nodeID xsi:nil="true" />
               <wrappedRoutingOptions xsi:nil="true" />
               <wrappedSegmentID xsi:nil="true" />
               <wrappedVehicleOptions xsi:nil="true" />
               <viaType xsi:nil="true" />
            </WaypointDesc>
            <WaypointDesc xmlns="http://xroute.xserver.ptvag.com" fuzzyRadius="0" linkType="NEXT_NODE">
               <wrappedCoords>
                  <Point xmlns="http://common.xserver.ptvag.com">
                     <kml xsi:nil="true" />
                     <point x="10.74977" y="53.69802" />
                  </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 xsi:nil="true" />
         <ArrayOfExceptionPath_3 />
         <ResultListOptions_4 binaryPathDesc="false" boundingRectanglesC="0" boundingRectanglesOffset="0" brunnelManoeuvres="false" detailLevel="BORDERS" dynamicInfo="false" manoeuvreAttributes="false" manoeuvreGroups="false" manoeuvres="false" nodes="false" polygon="true" segmentAttributes="false" segments="false" texts="false" tollManoeuvres="false" totalRectangle="false" urbanManoeuvres="false">
            <cenEmissionConfiguration xmlns="http://xroute.xserver.ptvag.com" xsi:nil="true" />
            <destDetail xmlns="http://xroute.xserver.ptvag.com" xsi:nil="true" />
            <emissions xmlns="http://xroute.xserver.ptvag.com" xsi:nil="true" />
            <hbefaType xmlns="http://xroute.xserver.ptvag.com" xsi:nil="true" />
            <startDetail xmlns="http://xroute.xserver.ptvag.com" xsi:nil="true" />
         </ResultListOptions_4>
         <CallerContext_5>
            <wrappedProperties xmlns="http://baseservices.service.jabba.ptvag.com">
               <CallerContextProperty key="CoordFormat" value="OG_GEODECIMAL" />
            </wrappedProperties>
         </CallerContext_5>
      </calculateRoute>
   </soap:Body>
</soap:Envelope>
Best regards,
Tobias

Re: Waypoints on specific street being ignored

Posted: Fri Aug 18, 2017 11:39 am
by Bernd Welter
From my understanding you should look at the linking types.
Orange = AUTO_LINKING,<br />Blue = NEXT_NODE
Orange = AUTO_LINKING,
Blue = NEXT_NODE
The sample request uses NEXT_NODE and the NEXT_NODE is located on the national road B208.

I assume the AUTO_LINKING provides the result you want: your input coordinates are matched via the orange line.
Right?

Best regards,
Bernd

Re: Waypoints on specific street being ignored

Posted: Fri Aug 18, 2017 11:48 am
by Ries
Thanks, you are absolutely right!
Setting linktype to AUTO_LINKING worked like a charm.

Best Regards,
Tobias