Is there a possibility to define roads that should be avoided for all routings of a customer (own server)? This is the case if all trucks should avoid a road when leaving the depot even if it would be the best route.
The best way would be to define these streets (only a small number) via the profile. The 2nd best way would be to define these streets in the requests. What should be avoided is to adapt the streets via RoadEditor. Via points are no option as the routes can start in both directions.
Avoiding specific roads around a Depot
- Bernd Welter
- Site Admin
- Posts: 2695
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
Re: Avoiding specific roads around a Depot
Hello Daniel,
besides the RoadEditor there are also other options to block custom segments during a routing. The efforts usually depend on the frequency of updates in your data.
If the number of objects is limited you could provide intersecting lines in ExceptionPaths (JSON shows just one of the lines):
The polygons are then part of a routing call, not of profiles.
Best regards,
Bernd
besides the RoadEditor there are also other options to block custom segments during a routing. The efforts usually depend on the frequency of updates in your data.
If the number of objects is limited you could provide intersecting lines in ExceptionPaths (JSON shows just one of the lines):
Code: Select all
{
"extSegments": "",
"street": "",
"binaryPathDesc": "",
"relMalus": 2600,
"intersectingLine": {
"$type": "LineString",
"lineString": {
"$type": "PlainLineString",
"points": [
{
"$type": "PlainPoint",
"x": 900000,
"y": 4750000
},
{
"$type": "PlainPoint",
"x": 900000,
"y": 5000000
}
]
}
}
}
Best regards,
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...