Page 1 of 1

Tolls for every point in one route

Posted: Thu Apr 13, 2023 2:32 pm
by VeeTennis
Hi,

Is it possible to get tolls for every point? Let's say we have a trip of 4 points. So we would like to get tolls for polylines:
  • 1 to 2
  • 2 to 3
  • 3 to 4
Currently we get tolls for the whole route --> 1 to 4. See an image attached.
Also, using multiple waypoints in a single request is not a viable option, due to different dangerous goods and tunnel restrictions between different waypoints.

Re: Tolls for every point in one route

Posted: Thu Apr 13, 2023 3:42 pm
by Bernd Welter
Hello Vytenis,

hopefully the following parameters help you to apply the solution through xRoute2 API:

1. To change vehicle settings in a single routing call look into com.ptvgroup.xserver.xroute.VehicleParametersAtWaypoint This supports OffRoadWaypoint, OnRoadWaypoint and MultiCoordinateOnRoadWaypoint
2. Then you can use the com.ptvgroup.xserver.xroute.Leg property com.ptvgroup.xserver.xroute.TollSummary to get the costs per leg
tollPerLeg.png
Is that what you are looking for?
Bernd