Hello,
We are in active phase of migration from xServer1 to Optiflow. A lot of different cases were solved, but for use case with truck attributes I can't find solution. Hope for your support.
Use case, where we have a propblem: 1 order from Route de la Raffinerie 21, Cressier (47.040007 7.033619) to Route de la Chenevière 45, Granges-Paccot (46.821398 7.137604), which we try to deliver with vehicle weight of 20 tons. xServer1 returns error, that this not allowed. However using Optiflow, even by providing maximum heavy Vehicle profile EUR_TRUCK_40T it returns succesfull results. Is this use case solvable?
Thanks for you help.
Best regards,
Andrei Kolesnikovich
Truck attributes consideration
- Bernd Welter
- Site Admin
- Posts: 3074
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
Re: Truck attributes consideration
Hi Andrei,
Please send the complete request/response to me (bernd.welter@ptvlogistics.com) and I will return my feedback to you 1:1.
We can also share the generic output with the community afterwards.
Without knowing the details I anticipate that the vehicle profile you used allows violations to appear (afaik this is the default) If this assumption is correct you can forbid such kind of a result by assigning allowViolations to false.
Bernd
Please send the complete request/response to me (bernd.welter@ptvlogistics.com) and I will return my feedback to you 1:1.
We can also share the generic output with the community afterwards.
Without knowing the details I anticipate that the vehicle profile you used allows violations to appear (afaik this is the default) If this assumption is correct you can forbid such kind of a result by assigning allowViolations to false.
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...
- Bernd Welter
- Site Admin
- Posts: 3074
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
Re: Truck attributes consideration
I made some test with the HERE map 2026.2H and it looks like the delivery location is placed in a "residents only" area.
As I cannot provide more details about this I kindly request you to create a helpdesk ticket so DEV can look into this.
Once the ticket is in place please share it's ID with me.
Once the ticket is in place please share it's ID with me.
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...
- Bernd Welter
- Site Admin
- Posts: 3074
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
Re: Truck attributes consideration
Here's some MIRA output:
RESIDENTS_ONLY is a violation type in routing. It applies when a road is flagged as "residents only" and the vehicle profile prohibits these roads.
For predefined profiles (like EUR_TRAILER_TRUCK), the documentation states:
"RESIDENTS_ONLY — This will not happen for the predefined profiles."
This means: Predefined profiles do not produce RESIDENTS_ONLY violations — they are allowed to use these roads by default. Your current scenario with EUR_TRAILER_TRUCK should therefore have no issue with residents-only zones.
If you want to explicitly block residents-only roads
This is where Custom Routing Profiles come in — they can model specific road restrictions, e.g. blocking access to certain roads or areas for particular vehicle types. A custom profile is then specified in the routing.profile field on the vehicle, just like a predefined profile.
Creation: Custom Routing Profiles are created via PTV support.
SummaryIn your case with violations: DISALLOW and EUR_TRAILER_TRUCK: Since the predefined profile does not generate RESIDENTS_ONLY violations in the first place, the route should be calculated without issues. If the destination coordinate is still unreachable, a Custom Routing Profile would be the clean approach.
Approach Description Predefined profiles Ignore RESIDENTS_ONLY restrictions — no action needed violations: ALLOW Allows the router to pass through restricted areas (incl. Residents Only) violations: DISALLOW Forbids all violations — route may become longer or impossible Custom Routing Profile Tailored road restrictions, created via PTV support
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...
-
andrei.koelsnikovich
- Posts: 4
- Joined: Mon Sep 29, 2025 8:36 am
Re: Truck attributes consideration
Hi Bernd.
Thanks a lot for all your responses, you are producing them much faster than I am answering on questions.
Since I'm on stabilization of 1st version integration into our software, it's a bit difficult to answer fast.
Last response from MIRA very informative, and for sure custom vehicle profiles are not a topic for first phase of Optiflow integration.
Thanks a lot for all your responses, you are producing them much faster than I am answering on questions.
Since I'm on stabilization of 1st version integration into our software, it's a bit difficult to answer fast.
Last response from MIRA very informative, and for sure custom vehicle profiles are not a topic for first phase of Optiflow integration.
- Bernd Welter
- Site Admin
- Posts: 3074
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
Re: Truck attributes consideration
So for the moment we would have to focus on
- explaining what happens
- evaluate what is possible with standard leverage
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...
-
andrei.koelsnikovich
- Posts: 4
- Joined: Mon Sep 29, 2025 8:36 am
Re: Truck attributes consideration
I decided to make 1 more test with vehicle attributes. Small note, to understand our integration. We are making request to Optiflow to build sequence of order execution and next we are making request to Decveloper.Routing to build a route. Before we had identical with xTour/xRoute components.
And reauest body: {"waypoints":[{"onRoad":{"latitude":46.83335876464844,"longitude":7.172900199890137}},{"onRoad":{"latitude":46.82181167602539,"longitude":7.182889938354492}}]}
According to response from Optiflow it is planning tour over this road as well. Assumtion based on tour duration and length from response. I can provide both if required.
- Here is result of xServer1 over xRoute component, which looks for me valid
- And this is result of routing over Developer.Routing which drives over restricted road.
And reauest body: {"waypoints":[{"onRoad":{"latitude":46.83335876464844,"longitude":7.172900199890137}},{"onRoad":{"latitude":46.82181167602539,"longitude":7.182889938354492}}]}
According to response from Optiflow it is planning tour over this road as well. Assumtion based on tour duration and length from response. I can provide both if required.
- Bernd Welter
- Site Admin
- Posts: 3074
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
Re: Truck attributes consideration
Same cause: the segments are restricted to "residentsOnly"...
Unfortunately you can hardly visualize this with Developer tools - I used xRoute2 to replay this.
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...