Calculating and Planning Routes with openingIntervals

This forum deals with any kind of routing computation whether it is simple A:B-routing, calculation of isochrones, simple matrix computation or nearest search.

Re: Calculating and Planning Routes with openingIntervals

Postby JBlack » 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
JBlack
 
Posts: 8
Joined: Thu Jan 17, 2019 3:10 pm

Re: Calculating and Planning Routes with openingIntervals

Postby Bernd Welter » Mon Dec 02, 2019 3:04 pm

Hello Jonas,

any new input / experiences since our call on 20.11.2019?

Best regards,
Bernd
Bernd Welter
Senior Technical Consultant Developer Components
PTV GROUP - Germany

Bernd at Youtube
User avatar
Bernd Welter
Site Admin
 
Posts: 1440
Joined: Mon Apr 14, 2014 10:28 am

Re: Calculating and Planning Routes with openingIntervals

Postby JBlack » Tue Dec 03, 2019 10:22 am

Hello Bernd,

I already got a TourPointResult returned by the calculateAdvancedTour method, but I'm trying to find out, if there is also an option to specify a tourbegintime and to force the starttime to the tourbegintime (maybe something like departureTimeFixed?). This is also possible on your map&guide internet software. It's called "Fest Abfahrt- und Ankunftszeit" under section "Zeiten".

Best regards,
Jonas
JBlack
 
Posts: 8
Joined: Thu Jan 17, 2019 3:10 pm

Re: Calculating and Planning Routes with openingIntervals

Postby Bernd Welter » Tue Dec 03, 2019 10:32 am

:idea:
Check the xRoute1.TourOptions
startIntervalLength.PNG
TourOptions... startIntervalLength

The length of the start interval. The earliest point in time when the tour can be started, is the time given by RoutingParameter START_TIME. If startIntervalLength is present, this value specifies within what time period (in [s]) after the start time the tour can be started. 0 means that the tour must be started at the specified start time, 600 means the tour can be started within 10 minutes after the start time. Leave this value empty in order not to restrict the start time, at all.
Bernd Welter
Senior Technical Consultant Developer Components
PTV GROUP - Germany

Bernd at Youtube
User avatar
Bernd Welter
Site Admin
 
Posts: 1440
Joined: Mon Apr 14, 2014 10:28 am

Re: Calculating and Planning Routes with openingIntervals

Postby JBlack » Tue Dec 03, 2019 10:59 am

Hi,

I already setted the START_TIME routingparameter, but I commented it out because I thought it will causing errors.
Now its working, thanks!

Best regards,
Jonas
JBlack
 
Posts: 8
Joined: Thu Jan 17, 2019 3:10 pm

Previous

Return to PTV xRouteServer

cron