How to identify street segments that are blocked but used due to missing alternatives?
Thank you!
Blocked segments
- Bernd Welter
- Site Admin
- Posts: 2684
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
Re: Blocked segments
Hello Sorin,
I assume you need to gather the segments that are returned similar to this message taken from MAP&GUIDE Internet: The term you are looking for is probably the violation. Violations occur if a route uses segments with constraints (e.g. TruckAttributes) and the routing parameters allow such conflicts.
You can use the following parameters to request so-called "violation" information as part of the routing output:
I assume you need to gather the segments that are returned similar to this message taken from MAP&GUIDE Internet: The term you are looking for is probably the violation. Violations occur if a route uses segments with constraints (e.g. TruckAttributes) and the routing parameters allow such conflicts.
You can use the following parameters to request so-called "violation" information as part of the routing output:
- RoutingOption
- Via snippet / profile:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?> <Profile> <Common coordinateFormat="OG_GEODECIMAL" language="en" majorVersion="1" minorVersion="0"/> <Routing majorVersion="2" minorVersion="0"> <Course> <Violations> <SegmentBlockingViolations cost="50000" enabled="false"/> </Violations> </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...
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...
-
- Posts: 3
- Joined: Mon May 15, 2017 10:03 am
Re: Blocked segments
Thank you! It works!
- Bernd Welter
- Site Admin
- Posts: 2684
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
Re: Blocked segments
By the way: the cost value used in MAP&GUIDE Internet is 50000.
Cheers,
Bernd
Cheers,
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...
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...