Re: Calculating and Planning Routes with openingIntervals
Posted: Tue Nov 12, 2019 10:12 am
Hello Bernd,
about the large number of intervals 30 days in advance, I think we could reduce it to about 1 to 2 weeks.
We only need the optimized route with calculated times, no overnight planning. If the tourendtime is reached, the next waypoint should "start" on the next day on the tourbegintime, without a tour back to homepod or hotel. If there is a operatingInterval specified, it should start at e. g. 09:00 (if e. g. the operatingInterval is 09:00 - 13:00). And this is working for us now, so if I add the second and third operatingIntervals also, it should work, as you also confirmed to me.
The entire times like startingtime, arrivaltime, waitduration and so on is calculated by ourselves. Is it possible to get the calculated times from an optimized route returned by the ptv service? Because currently the ptv service only optimizes the route and arranges the order of the waypoints for us. We then calculate each starting and stoptime. If there is a operatinginterval setted and if the waypoint can be reachend within it (depending on the calculated times of the previous waypoints) the arrivaltime of that point equals startingtime from previous waypoint added to drivingtime and waitingduration. If the waypoint doesn't fit into the operating Interval, we will try this for the next day again, and so on.
But I don't know how to calculate this with two additional waypoints. Because I don't know in which operatingInterval the ptv service will put the waypoint (e. g. the first or second one or e. g. on the third of the next day...) while optimizing.
So is it possible that the ptv service will return the calculated times (startingtime, drivingtime, stoptime,...) from the optimzed route?
Best regards,
Jonas Schwartz
about the large number of intervals 30 days in advance, I think we could reduce it to about 1 to 2 weeks.
We only need the optimized route with calculated times, no overnight planning. If the tourendtime is reached, the next waypoint should "start" on the next day on the tourbegintime, without a tour back to homepod or hotel. If there is a operatingInterval specified, it should start at e. g. 09:00 (if e. g. the operatingInterval is 09:00 - 13:00). And this is working for us now, so if I add the second and third operatingIntervals also, it should work, as you also confirmed to me.
The entire times like startingtime, arrivaltime, waitduration and so on is calculated by ourselves. Is it possible to get the calculated times from an optimized route returned by the ptv service? Because currently the ptv service only optimizes the route and arranges the order of the waypoints for us. We then calculate each starting and stoptime. If there is a operatinginterval setted and if the waypoint can be reachend within it (depending on the calculated times of the previous waypoints) the arrivaltime of that point equals startingtime from previous waypoint added to drivingtime and waitingduration. If the waypoint doesn't fit into the operating Interval, we will try this for the next day again, and so on.
But I don't know how to calculate this with two additional waypoints. Because I don't know in which operatingInterval the ptv service will put the waypoint (e. g. the first or second one or e. g. on the third of the next day...) while optimizing.
So is it possible that the ptv service will return the calculated times (startingtime, drivingtime, stoptime,...) from the optimzed route?
Best regards,
Jonas Schwartz