Confusing start times vs. time windows in Network Analyst

المشرف العام

Administrator
طاقم الإدارة
This is the snippet of my ArcPy script that deals with route-making:

TechRoute = arcpy.na.MakeRouteLayer(inNetworkDataset, RouteName, "Minutes", "FIND_BEST_ORDER", "PRESERVE_FIRST", "USE_TIMEWINDOWS")field_mapping = "TimeWindowStart TWStart1 #;TimeWindowEnd TWEnd1 #"arcpy.na.AddLocations(RouteName, "Stops", TechLayer, field_mapping, "1000 Meters", "VisitOrder")outputLayerFile = os.path.join(workingDir, "opt{}".format(RouteName))Note that I'm not assigning any value for the start_date_time parameter for na.MakeRouteLayer. I decided to leave it out since I want the route to start at 8am, and in the Esri help page, it says

The default value for this parameter is 8:00 AM.

Unfortunately, it's not starting anywhere CLOSE to 8am. (And also not starting on today's date, but I am not interested in the date so I don't care.)



As best I can figure it's using the time windows, which (for this particular route) all start at 8am and end at 6pm, and working backwards. This isn't what I expected and also seems a bit silly (wouldn't most users want to start at the beginning of a time window?). For another technician's route without any appointment windows, it's starting at midnight instead of 8am. (Again, not what I would expect!)



أكثر...
 
أعلى