HINT:List FL segment information without considering it

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
Bernd Welter
Site Admin
Posts: 2684
Joined: Mon Apr 14, 2014 10:28 am
Contact:

HINT:List FL segment information without considering it

Post by Bernd Welter »

HI there,

here's a little hint I just discovered in the manual. Use it for analysis!
Thanks to Frank Sch. for directing me to it!

Best regards Bernd

How to list FeatureLayer segment information without considering it
For evaluation purposes, it is possible to show information about FeatureLayer segment data along a route without considering it. This can be achieved by configuring a FeatureLayer theme but disabling all its actions, rules, or countries. Additionally, featureDescriptions have to be requested in the ResultListOptions element of the routing request.

The following snippet shows an example of how to display information about preferred routes in the route list without considering them:

Code: Select all

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Profile xmlns:ns2="http://www.ptv.de/com/ptvag/xserver/engines/xpoidbaccess">
 <FeatureLayer majorVersion="1" minorVersion="0">
  <Themes>
   <Theme id="PTV_PreferredRoutes" enabled="true">
    <Country id="*"  enabled="false"/>
   </Theme>
  </Themes>
 </FeatureLayer>
 <Routing majorVersion="2" minorVersion="0">
  <Course>
   <AdditionalDataRules enabled="true"/>
  </Course>
 </Routing>
</Profile>
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