DriverProfile Class
.gif)
Contains the preferences for the times to start and end driving each day.
Public Class DriverProfile
Member of [Namespace]
[C#]
public class DriverProfile : System.Object
Member of [Namespace]
Public Properties
DayEndTime |
The time to stop driving each day, in minutes after 12:00 A.M. Integer. Default is –1, which is equivalent to 1440 (12:00 A.M. the following day). Valid range is –1 to 1440. |
DayStartTime |
The time to start driving each day, in minutes after 12:00 A.M. Integer. Default is –1, which is equivalent to 0 (12:00 A.M.). Valid range is –1 to 1440. |
Remarks
- For a driving day of 8:00 A.M. to 6:00 P.M., set the DayStartTime property to 480 (8 × 60) and the DayEndTime property to 1080 (18 × 60).
- The DriverProfile object is used in the RouteSpecification.DriverProfile property, which is passed to the RouteServiceSoap.CalculateRoute method.
- A DriverProfile object with any setting other than the default settings—which indicate nonstop driving—affects the total time of a route segment (Segment.TripTime property) and the entire route (RouteItinerary.TripTime property).
- The times set in the DriverProfile object are returned in the Direction.DirectionType properties that have a value of StartOfDay or EndOfDay (DirectionType enumeration). Use these properties with the Direction.Duration property to calculate the times for an itinerary.
See Also
RouteSpecification.DriverProfile Property | RouteServiceSoap.CalculateRoute Method | Segment.TripTime Property | RouteItinerary.TripTime Property | Direction.DirectionType Property | DirectionType Enumeration | Direction.Duration Property
.gif)