Unsuccessful routing with Feature layer
Posted: Wed Jun 14, 2017 8:55 am
Hello guys,
Owing to solving a routing problem occurred (http://xserver.ptvgroup.com/forum/viewt ... ?f=7&t=568) we decided to use feature layer.
In that case, our special problem was solved, but considering:
1. only the Road Editor layer: by requesting route between two points, the request successfully gives back a route.
2. only the Feature layer: by requesting route between two points, the request successfully gives back a route.
3. both Road editor Layer and Feature layer: by requesting route between two points, we did not get back route.
4. both Road editor Layer and Feature layer and by allowing segment violations: the request successfully gives back a route, in the received route the RouteInfo contains HasViolation false field.
Could you please share with us the root cause of the problem?
Thank you in advance
Best regards,
Daniel
Sample request:
Profile with feature layer:
Profile without feature layer:
Owing to solving a routing problem occurred (http://xserver.ptvgroup.com/forum/viewt ... ?f=7&t=568) we decided to use feature layer.
In that case, our special problem was solved, but considering:
1. only the Road Editor layer: by requesting route between two points, the request successfully gives back a route.
2. only the Feature layer: by requesting route between two points, the request successfully gives back a route.
3. both Road editor Layer and Feature layer: by requesting route between two points, we did not get back route.
4. both Road editor Layer and Feature layer and by allowing segment violations: the request successfully gives back a route, in the received route the RouteInfo contains HasViolation false field.
Could you please share with us the root cause of the problem?
Thank you in advance
Best regards,
Daniel
Sample request:
Code: Select all
<?xml version="1.0"?>
-<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
-<s:Body xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-<calculateExtendedRoute xmlns="http://types.xroute.xserver.ptvag.com">
-<ArrayOfWaypointDesc_1>
-<WaypointDesc xmlns="http://xroute.xserver.ptvag.com" linkType="NEXT_SEGMENT" heading="153" fuzzyRadius="0">
-<wrappedCoords>
-<Point xmlns="http://common.xserver.ptvag.com">
<kml xsi:nil="true"/>
<point y="54.80509058" x="9.32874183"/>
</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" linkType="NEXT_SEGMENT" fuzzyRadius="0">
-<wrappedCoords>
-<Point xmlns="http://common.xserver.ptvag.com">
<kml xsi:nil="true"/>
<point y="54.61649" x="9.44279"/>
</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 xmlns="http://xroute.xserver.ptvag.com" value="false" parameter="IS_DESTTIME"/>
<RoutingOption xmlns="http://xroute.xserver.ptvag.com" value="false" parameter="GENERATE_EXTWAYPOINTS"/>
<RoutingOption xmlns="http://xroute.xserver.ptvag.com" value="GA" parameter="ROUTE_LANGUAGE"/>
<RoutingOption xmlns="http://xroute.xserver.ptvag.com" value="1.4.5" parameter="REQUEST_VERSION"/>
<RoutingOption xmlns="http://xroute.xserver.ptvag.com" value="true" parameter="ENABLE_ROADEDITOR"/>
<RoutingOption xmlns="http://xroute.xserver.ptvag.com" value="TruckAttributes_EUR" parameter="ROADEDITOR_LAYERNAME"/>
<RoutingOption xmlns="http://xroute.xserver.ptvag.com" value="MAX_WEIGHT=40000,MAX_HEIGHT=400,MAX_WIDTH=250,MAX_LENGTH=1750,MAX_AXLE_LOAD=1150" parameter="ROADEDITOR_ADDITIONAL_OPTIONS"/>
<RoutingOption xmlns="http://xroute.xserver.ptvag.com" value="wire_birod.restrictions.default;[CATEGORY] IN (1, 3)" parameter="GEODATASOURCE_LAYER"/>
<RoutingOption xmlns="http://xroute.xserver.ptvag.com" value="49" parameter="ROUTING_COUNTRIES"/>
</ArrayOfRoutingOption_2>
<ArrayOfExceptionPath_3 xsi:nil="true"/>
-<ResultListOptions_4 manoeuvres="false" binaryPathDesc="false" boundingRectanglesC="0" boundingRectanglesOffset="0" brunnelManoeuvres="false" detailLevel="STANDARD" dynamicInfo="false" manoeuvreAttributes="false" urbanManoeuvres="false" manoeuvreGroups="false" nodes="false" polygon="false" segmentAttributes="false" segments="false" texts="false" tollManoeuvres="false" totalRectangle="true">
<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>
-<CountryInfoOptions_5 detailedTollCosts="false" calculatePartTollCosts="true" allEuro="true">
<wrappedReductionIDs xmlns="http://xroute.xserver.ptvag.com" xsi:nil="true"/>
<wrappedTollScenarios xmlns="http://xroute.xserver.ptvag.com" xsi:nil="true"/>
</CountryInfoOptions_5>
-<CallerContext_6 log3="" log2="" log1="NEXOGEN">
-<wrappedProperties xmlns="http://baseservices.service.jabba.ptvag.com">
<CallerContextProperty value="OG_GEODECIMAL" key="CoordFormat"/>
<CallerContextProperty value="PLAIN" key="ResponseGeometry"/>
<CallerContextProperty value="profile_with_featurelayer" key="Profile"/>
</wrappedProperties>
</CallerContext_6>
</calculateExtendedRoute>
</s:Body>
</s:Envelope>
Code: Select all
<?xml version="1.0" encoding="UTF-8" standalone="true"?>
-<Profile xmlns:ns2="http://www.ptv.de/com/ptvag/xserver/engines/xpoidbaccess">
<Common language="de" minorVersion="0" majorVersion="1"/>
-<FeatureLayer minorVersion="0" majorVersion="1">
<GlobalSettings enableTimeDependency="True"/>
-<Themes>
<Theme priorityLevel="0" enabled="True" id="PTV_TruckAttributes"/>
<Theme priorityLevel="0" enabled="True" id="PTV_RestrictionZones"/>
</Themes>
</FeatureLayer>
-<Routing minorVersion="0" majorVersion="2">
-<Waypoint maximumDistanceToSegment="50000">
-<LinkTypeConfiguration>
<Road headingTolerance="45.0"/>
</LinkTypeConfiguration>
</Waypoint>
-<Algorithm aStarAggressiveness="1.3">
<LevellingScopeByNetworkClass searchSpace="-1"/>
<LevellingScopeByNetworkClass searchSpace="-1"/>
<LevellingScopeByNetworkClass searchSpace="-1"/>
<LevellingScopeByNetworkClass searchSpace="200"/>
<LevellingScopeByNetworkClass searchSpace="100"/>
<LevellingScopeByNetworkClass searchSpace="100"/>
<LevellingScopeByNetworkClass searchSpace="10"/>
<LevellingScopeByNetworkClass searchSpace="10"/>
</Algorithm>
-<Course distanceTimeWeighting="70">
-<BasicDataRules>
-<VehicleSpecific>
<EmergencyVehicles segmentMalus="2501"/>
<ProjectSpecificVehicles blockedSegmentMalus="2501"/>
</VehicleSpecific>
-<Network rampMalus="10">
<MalusByNetworkClass malus="-40"/>
<MalusByNetworkClass malus="0"/>
<MalusByNetworkClass malus="0"/>
<MalusByNetworkClass malus="0"/>
<MalusByNetworkClass malus="60"/>
<MalusByNetworkClass malus="82"/>
<MalusByNetworkClass malus="100"/>
<MalusByNetworkClass malus="100"/>
</Network>
<Toll vignetteMalus="55" tollMalus="55"/>
<SpecialAreas urbanMalus="50" residentialMalus="255"/>
<CombinedTransport piggybackMalus="2501" ferryMalus="2501"/>
</BasicDataRules>
-<AdditionalDataRules enabled="true">
-<Legacy>
<KeyValue enabled="true" threshold="400" key="MaxHeight"/>
<KeyValue enabled="true" threshold="40000" key="MaxWeight"/>
<KeyValue enabled="true" threshold="250" key="MaxWidth"/>
<KeyValue enabled="true" threshold="17500" key="MaxLength"/>
<KeyValue enabled="true" threshold="11500" key="MaxAxleLoad"/>
<!-- KeyValue key="MaxHeightDir" enabled="true" threshold="40"/> <KeyValue key="MaxWeightDir" enabled="true" threshold="400"/> <KeyValue key="MaxWidthDir" enabled="true" threshold="25,5"/> <KeyValue key="MaxLengthDir" enabled="true" threshold="165"/> <KeyValue key="MaxAxleLoadDir" enabled="true" threshold="80"/ -->
<KeyValue enabled="true" malus="2501" threshold="400" key="DirOptCondMalus1"/>
<KeyValue enabled="true" malus="2501" threshold="400" key="DirOptCondMalus2"/>
<KeyValue enabled="true" malus="2501" threshold="400" key="DirOptCondMalus3"/>
<KeyValue enabled="true" malus="2501" threshold="400" key="DirOptCondMalus4"/>
<KeyValue enabled="true" malus="255" threshold="400" key="DirOptCondMalus5"/>
<KeyValue enabled="true" malus="300" threshold="400" key="DirOptCondMalus6"/>
<KeyValue enabled="true" malus="2500" threshold="400" key="DirOptCondMalus7"/>
<KeyValue enabled="true" malus="-99" threshold="400" key="DirOptCondMalus8"/>
<KeyValue enabled="true" malus="-99" threshold="400" key="DirOptCondMalus9"/>
<KeyValue enabled="false" malus="2501" key="Trailer"/>
<KeyValue enabled="true" malus="2500" key="ResidentialTrucks"/>
<KeyValue enabled="true" malus="200" key="DeliveryTrucks"/>
<KeyValue enabled="true" malus="2501" key="PublicTrucks"/>
<KeyValue enabled="true" malus="-99" key="PreferredTrucks"/>
<KeyValue enabled="true" malus="-99" key="PreferredHazardousTrucks"/>
</Legacy>
<SegmentSpecific useTollForTrucksAttribute="true" useTollForCarsAttribute="true" useBlockedForTrucksAttribute="true" useBlockedForCarsAttribute="true" useSpeed="true" useRampAttribute="true" useUrbanAttribute="true" useFerryDuration="true" useFerryLength="true" useSegmentLength="true"/>
</AdditionalDataRules>
-<DynamicRouting>
<SpeedMapping mappedSpeed="1" baseSpeed="1"/>
<SpeedMapping mappedSpeed="10" baseSpeed="10"/>
<SpeedMapping mappedSpeed="20" baseSpeed="20"/>
<SpeedMapping mappedSpeed="30" baseSpeed="30"/>
<SpeedMapping mappedSpeed="40" baseSpeed="40"/>
<SpeedMapping mappedSpeed="50" baseSpeed="50"/>
<SpeedMapping mappedSpeed="56" baseSpeed="60"/>
<SpeedMapping mappedSpeed="61" baseSpeed="70"/>
<SpeedMapping mappedSpeed="66" baseSpeed="80"/>
<SpeedMapping mappedSpeed="69" baseSpeed="90"/>
<SpeedMapping mappedSpeed="72" baseSpeed="100"/>
<SpeedMapping mappedSpeed="73" baseSpeed="110"/>
<SpeedMapping mappedSpeed="74" baseSpeed="120"/>
<SpeedMapping mappedSpeed="75" baseSpeed="130"/>
<SpeedMapping mappedSpeed="75" baseSpeed="140"/>
<DynamicTimeStep size="900"/>
</DynamicRouting>
</Course>
-<Vehicle>
-<Physical>
-<Drive>
<Emissions emissionTechnology="EXHAUST_GAS_RECIRCULATION"/>
<Engine fuelConsumption="30.0" cylinderCapacity="12000"/>
</Drive>
<Weight loadWeight="25000" totalPermittedWeight="40000" emptyWeight="15000"/>
<Axle numberOfAxles="5" axleLoad="11500"/>
<Trailer emptyWeight="15000"/>
<Passenger maximumPermittedNumberOfPassengers="1"/>
<Dimension width="254" length="1800" height="400"/>
</Physical>
-<Legal>
<LegalCondition isDelivery="true" isAuthorized="true"/>
</Legal>
<Load loadType="GOODS"/>
-<Speed>
<SpeedRangeByNetworkClass maximumSpeed="80" minimumSpeed="55"/>
<SpeedRangeByNetworkClass maximumSpeed="65" minimumSpeed="30"/>
<SpeedRangeByNetworkClass maximumSpeed="55" minimumSpeed="23"/>
<SpeedRangeByNetworkClass maximumSpeed="45" minimumSpeed="20"/>
<SpeedRangeByNetworkClass maximumSpeed="40" minimumSpeed="18"/>
<SpeedRangeByNetworkClass maximumSpeed="30" minimumSpeed="15"/>
<SpeedRangeByNetworkClass maximumSpeed="30" minimumSpeed="15"/>
<SpeedRangeByNetworkClass maximumSpeed="30" minimumSpeed="15"/>
</Speed>
</Vehicle>
-<Isochrone>
<NodeBasedPolygon secondSmoothingAngle="0.0" firstSmoothingAngle="3.0" filterMode="WEAK"/>
</Isochrone>
-<RouteList>
-<Maneuvers>
<Bridges maximumDistanceBehind="1000" minimumLength="1000" maneuvers="true"/>
<Tunnels maximumDistanceBehind="1000" minimumLength="1000" maneuvers="true"/>
<Urban minimumDistanceForManeuvers="1000" minimumNetworkClassForInformation="2" information="true"/>
</Maneuvers>
-<ManeuverGroups maximumDistanceBetweenManeuvers="500">
<BoundingBox offset="1443"/>
</ManeuverGroups>
</RouteList>
-<AdditionalRules maximumAirLineDistance="4294967295">
-<ExceptionPaths>
<Binary validate="true"/>
</ExceptionPaths>
</AdditionalRules>
</Routing>
</Profile>
Code: Select all
<?xml version="1.0" encoding="UTF-8" standalone="true"?>
-<Profile xmlns:ns2="http://www.ptv.de/com/ptvag/xserver/engines/xpoidbaccess">
<Common language="de" minorVersion="0" majorVersion="1"/>
-<Routing minorVersion="0" majorVersion="2">
-<Waypoint maximumDistanceToSegment="50000">
-<LinkTypeConfiguration>
<Road headingTolerance="45.0"/>
</LinkTypeConfiguration>
</Waypoint>
-<Algorithm aStarAggressiveness="1.3">
<LevellingScopeByNetworkClass searchSpace="-1"/>
<LevellingScopeByNetworkClass searchSpace="-1"/>
<LevellingScopeByNetworkClass searchSpace="-1"/>
<LevellingScopeByNetworkClass searchSpace="200"/>
<LevellingScopeByNetworkClass searchSpace="100"/>
<LevellingScopeByNetworkClass searchSpace="100"/>
<LevellingScopeByNetworkClass searchSpace="10"/>
<LevellingScopeByNetworkClass searchSpace="10"/>
</Algorithm>
-<Course distanceTimeWeighting="70">
-<BasicDataRules>
-<VehicleSpecific>
<EmergencyVehicles segmentMalus="2501"/>
<ProjectSpecificVehicles blockedSegmentMalus="2501"/>
</VehicleSpecific>
-<Network rampMalus="10">
<MalusByNetworkClass malus="-40"/>
<MalusByNetworkClass malus="0"/>
<MalusByNetworkClass malus="0"/>
<MalusByNetworkClass malus="0"/>
<MalusByNetworkClass malus="60"/>
<MalusByNetworkClass malus="82"/>
<MalusByNetworkClass malus="100"/>
<MalusByNetworkClass malus="100"/>
</Network>
<Toll vignetteMalus="55" tollMalus="55"/>
<SpecialAreas urbanMalus="50" residentialMalus="255"/>
<CombinedTransport piggybackMalus="2501" ferryMalus="2501"/>
</BasicDataRules>
-<AdditionalDataRules>
-<Legacy>
<KeyValue threshold="400" enabled="true" key="MaxHeight"/>
<KeyValue threshold="40000" enabled="true" key="MaxWeight"/>
<KeyValue threshold="250" enabled="true" key="MaxWidth"/>
<KeyValue threshold="17500" enabled="true" key="MaxLength"/>
<KeyValue threshold="11500" enabled="true" key="MaxAxleLoad"/>
<!-- KeyValue key="MaxHeightDir" enabled="true" threshold="40"/> <KeyValue key="MaxWeightDir" enabled="true" threshold="400"/> <KeyValue key="MaxWidthDir" enabled="true" threshold="25,5"/> <KeyValue key="MaxLengthDir" enabled="true" threshold="165"/> <KeyValue key="MaxAxleLoadDir" enabled="true" threshold="80"/ -->
<KeyValue malus="2501" threshold="400" enabled="true" key="DirOptCondMalus1"/>
<KeyValue malus="2501" threshold="400" enabled="true" key="DirOptCondMalus2"/>
<KeyValue malus="2501" threshold="400" enabled="true" key="DirOptCondMalus3"/>
<KeyValue malus="2501" threshold="400" enabled="true" key="DirOptCondMalus4"/>
<KeyValue malus="255" threshold="400" enabled="true" key="DirOptCondMalus5"/>
<KeyValue malus="300" threshold="400" enabled="true" key="DirOptCondMalus6"/>
<KeyValue malus="2500" threshold="400" enabled="true" key="DirOptCondMalus7"/>
<KeyValue malus="-99" threshold="400" enabled="true" key="DirOptCondMalus8"/>
<KeyValue malus="-99" threshold="400" enabled="true" key="DirOptCondMalus9"/>
<KeyValue malus="2501" enabled="false" key="Trailer"/>
<KeyValue malus="2500" enabled="true" key="ResidentialTrucks"/>
<KeyValue malus="200" enabled="true" key="DeliveryTrucks"/>
<KeyValue malus="2501" enabled="true" key="PublicTrucks"/>
<KeyValue malus="-99" enabled="true" key="PreferredTrucks"/>
<KeyValue malus="-99" enabled="true" key="PreferredHazardousTrucks"/>
</Legacy>
<SegmentSpecific useTollForTrucksAttribute="true" useTollForCarsAttribute="true" useBlockedForTrucksAttribute="true" useBlockedForCarsAttribute="true" useSpeed="true" useRampAttribute="true" useUrbanAttribute="true" useFerryDuration="true" useFerryLength="true" useSegmentLength="true"/>
</AdditionalDataRules>
-<DynamicRouting>
<SpeedMapping mappedSpeed="1" baseSpeed="1"/>
<SpeedMapping mappedSpeed="10" baseSpeed="10"/>
<SpeedMapping mappedSpeed="20" baseSpeed="20"/>
<SpeedMapping mappedSpeed="30" baseSpeed="30"/>
<SpeedMapping mappedSpeed="40" baseSpeed="40"/>
<SpeedMapping mappedSpeed="50" baseSpeed="50"/>
<SpeedMapping mappedSpeed="56" baseSpeed="60"/>
<SpeedMapping mappedSpeed="61" baseSpeed="70"/>
<SpeedMapping mappedSpeed="66" baseSpeed="80"/>
<SpeedMapping mappedSpeed="69" baseSpeed="90"/>
<SpeedMapping mappedSpeed="72" baseSpeed="100"/>
<SpeedMapping mappedSpeed="73" baseSpeed="110"/>
<SpeedMapping mappedSpeed="74" baseSpeed="120"/>
<SpeedMapping mappedSpeed="75" baseSpeed="130"/>
<SpeedMapping mappedSpeed="75" baseSpeed="140"/>
<DynamicTimeStep size="900"/>
</DynamicRouting>
</Course>
-<Vehicle>
-<Physical>
-<Drive>
<Emissions emissionTechnology="EXHAUST_GAS_RECIRCULATION"/>
<Engine fuelConsumption="30.0" cylinderCapacity="12000"/>
</Drive>
<Weight loadWeight="25000" totalPermittedWeight="40000" emptyWeight="15000"/>
<Axle numberOfAxles="5" axleLoad="11500"/>
<Trailer emptyWeight="15000"/>
<Passenger maximumPermittedNumberOfPassengers="1"/>
<Dimension width="254" length="1800" height="400"/>
</Physical>
-<Legal>
<LegalCondition isDelivery="true" isAuthorized="true"/>
</Legal>
<Load loadType="GOODS"/>
-<Speed>
<SpeedRangeByNetworkClass maximumSpeed="80" minimumSpeed="55"/>
<SpeedRangeByNetworkClass maximumSpeed="65" minimumSpeed="30"/>
<SpeedRangeByNetworkClass maximumSpeed="55" minimumSpeed="23"/>
<SpeedRangeByNetworkClass maximumSpeed="45" minimumSpeed="20"/>
<SpeedRangeByNetworkClass maximumSpeed="40" minimumSpeed="18"/>
<SpeedRangeByNetworkClass maximumSpeed="30" minimumSpeed="15"/>
<SpeedRangeByNetworkClass maximumSpeed="30" minimumSpeed="15"/>
<SpeedRangeByNetworkClass maximumSpeed="30" minimumSpeed="15"/>
</Speed>
</Vehicle>
-<Isochrone>
<NodeBasedPolygon secondSmoothingAngle="0.0" firstSmoothingAngle="3.0" filterMode="WEAK"/>
</Isochrone>
-<RouteList>
-<Maneuvers>
<Bridges maximumDistanceBehind="1000" minimumLength="1000" maneuvers="true"/>
<Tunnels maximumDistanceBehind="1000" minimumLength="1000" maneuvers="true"/>
<Urban minimumDistanceForManeuvers="1000" minimumNetworkClassForInformation="2" information="true"/>
</Maneuvers>
-<ManeuverGroups maximumDistanceBetweenManeuvers="500">
<BoundingBox offset="1443"/>
</ManeuverGroups>
</RouteList>
-<AdditionalRules maximumAirLineDistance="4294967295">
-<ExceptionPaths>
<Binary validate="true"/>
</ExceptionPaths>
</AdditionalRules>
</Routing>
</Profile>