Page 1 of 1

Border Crossings

PostPosted: Mon Jan 07, 2019 2:43 pm
by Max Beermann
Hello there,

using xroute > it is possible to get all the routed coordinates (ResultListOptions: polygon="true").

Is there a chance to get the coordinates of the border crossings?

For example: D > (NL) > B

iuCode: 49 / Start: -------- / End: lat;lng
iuCode: 33 / Start: lat;lng / End: lat;lng
iuCode: 32 / Start: lat;lng / End: -------



Thank you very much in advance
Max

Re: Border Crossings

PostPosted: Mon Jan 07, 2019 2:56 pm
by Bernd Welter
Hello Max,

how about the Manoeuvres list?
Watch out for the BORDER-Manoeuvres. They link to the segments you might be looking for. And the segments coordinates are available via the reference to polygon points
borders.PNG
Coordinates of the border manoeuvres are displayed in the map

Does this answer your question?

Best regards,
Bernd

Re: Border Crossings

PostPosted: Thu Jan 10, 2019 1:33 pm
by Max Beermann
Hey Bernd,

sorry > I am having problems to get the solution.

According to your example:

How can I find out the coordinates of the first border-crossing?

I do not know how to refer to the coordinates I receive ( the 1277th planpoint [lat/lng] > ?).

Maybe you know what I am doing wrong?

Code: Select all
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <calculateAdvancedTour xmlns="http://types.xroute.xserver.ptvag.com">
      <ArrayOfWaypointDesc_1>
        <ns6:WaypointDesc xmlns:ns6="http://xroute.xserver.ptvag.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns6:TourPointDesc" completeServiceInIntervals="true" useServicePeriodForRecreation="false" servicePeriod="100" fuzzyRadius="0" linkType="NEXT_SEGMENT">
          <ns6:wrappedCoords>
            <ns3:Point xmlns:ns3="http://common.xserver.ptvag.com">
              <ns3:point y="6704772.0515" x="788716.73418" />
            </ns3:Point>
          </ns6:wrappedCoords>
          <ns6:wrappedSegmentID xsi:nil="true" />
          <ns6:wrappedOpeningIntervals />
        </ns6:WaypointDesc>
        <ns6:WaypointDesc xmlns:ns6="http://xroute.xserver.ptvag.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns6:TourPointDesc" completeServiceInIntervals="true" useServicePeriodForRecreation="false" servicePeriod="300" fuzzyRadius="0" linkType="NEXT_SEGMENT">
          <ns6:wrappedCoords>
            <ns3:Point xmlns:ns3="http://common.xserver.ptvag.com">
              <ns3:point y="6636135.4182" x="146527.11459" />
            </ns3:Point>
          </ns6:wrappedCoords>
          <ns6:wrappedSegmentID xsi:nil="true" />
          <ns6:wrappedOpeningIntervals />
        </ns6:WaypointDesc>
      </ArrayOfWaypointDesc_1>
      <TourOptions_2 restrictToSingleOperatingInterval="false" />
      <ArrayOfRoutingOption_3>
        <ns6:RoutingOption xmlns:ns6="http://xroute.xserver.ptvag.com" value="41" parameter="EXCLUDE_COUNTRIES" />
        <ns6:RoutingOption xmlns:ns6="http://xroute.xserver.ptvag.com" value="80" parameter="OPTIMIZATION" />
        <ns6:RoutingOption xmlns:ns6="http://xroute.xserver.ptvag.com" value="90,50,70,40,60,40,40,20,30,10,20,5,6,6,1,1" parameter="SPEED_PROFILE" />
      </ArrayOfRoutingOption_3>
      <ArrayOfExceptionPath_4>
        <ns6:ExceptionPath xmlns:ns6="http://xroute.xserver.ptvag.com" street="[Mülheimer Brücke]/[Leverkusener Brücke]/[Zoobrücke]/[Deutzer Brücke]/[Autoroute des Estuaires/A16/E15/E40] /[Autoroute des Estuaires] / [Rond-Point des Sapins] / [Harbour Approach Road] / [Leopold II-Dam] / [Ramp B] / [Hoek van Holland-Harwich] / [Havennummer 5800-6200] " relMalus="2501" extSegments="" binaryPathDesc="" absTimeMalus="0">
          <ns6:wrappedNodes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
        </ns6:ExceptionPath>
      </ArrayOfExceptionPath_4>
      <ResultListOptions_5 binaryPathDesc="true" totalRectangle="false" boundingRectanglesOffset="300" boundingRectanglesC="5" tollManoeuvres="true" manoeuvreGroupRatio="1.0" manoeuvreGroups="true" urbanManoeuvres="true" brunnelManoeuvres="true" manoeuvreAttributes="true" segmentAttributes="true" segments="true" dynamicInfo="false" detailLevel="STANDARD" polygon="true" nodes="true" texts="true" manoeuvres="true" />
      <CountryInfoOptions_6 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns6:CountryInfoVehicleOptions" calculatePartTollCosts="true" allEuro="true" detailedTollCosts="true" tollDate="2019-01-11T16:00:00+02:00">
        <ns6:wrappedOptions xmlns:ns6="http://xroute.xserver.ptvag.com">
          <ns6:VehicleOption value="TRL" parameter="TYPE" />
          <ns6:VehicleOption value="35000" parameter="TOTAL_WEIGHT" />
          <ns6:VehicleOption value="5" parameter="NUMBER_OF_AXLES" />
          <ns6:VehicleOption value="EURO_6" parameter="EMISSION_CLASS" />
        </ns6:wrappedOptions>
      </CountryInfoOptions_6>
      <CallerContext_7>
        <ns2:wrappedProperties xmlns:ns2="http://baseservices.service.jabba.ptvag.com">
          <ns2:CallerContextProperty value="PLAIN" key="ResponseGeometry" />
          <ns2:CallerContextProperty value="PTV_MERCATOR" key="CoordFormat" />
          <ns2:CallerContextProperty value="truckfast" key="Profile" />
        </ns2:wrappedProperties>
      </CallerContext_7>
    </calculateAdvancedTour>
  </soap:Body>
</soap:Envelope>


Best regards
Max

Re: Border Crossings

PostPosted: Thu Jan 10, 2019 3:37 pm
by Bernd Welter
Hello max,

check the arrays - the poilygon ontains the coordinates.
The segments refer to the polygon.
The Manoeuvres refer to the segments.

https://xserver.ptvgroup.com/fileadmin/ ... ation.html#com.ptvag.xserver.xroute.Route%3FTocPath%3DDeveloper's%2520Guide%7CAPI%2520Documentation%7CAPI%2520Documentation%2520PTV%2520xRoute%7CComponent%2520xroute%7CClasses%7C_____60

Best regards,
Bernd