Print this page
A vehicle operator.
Inheritance Hierarchy SystemObject
Telogis.APIDriver
Namespace: Telogis.API Syntax The Driver type exposes the following members.
Properties Fields
| Name | Description |
---|
| DepotID |
ID of the driver's home depot
|
| ID |
The ID of the driver
|
| Name |
The name of the driver
|
| Properties |
Name
|
Type
|
Description
|
---|
RouteCat
|
Integer
|
The ID of a category you want associated with this driver's route.
|
FirstName
|
String
|
The driver's first name.
|
MiddleName
|
String
|
The driver's middle name.
|
LastName
|
String
|
The driver's last name.
|
Address1
|
String
|
Line one of the driver's address.
|
Address2
|
String
|
Line two of the driver's address.
|
Address3
|
String
|
Line three of the driver's address.
|
City
|
String
|
The city that the driver lives in.
|
State
|
String
|
The state that the driver lives in.
|
Zip
|
String
|
The zip or postal code of the driver's address.
|
PhotoId
|
Integer
|
The id of a photo associated with this driver. See
CreatePhoto(String, Byte) |
Phone1
|
String
|
The driver's phone number
|
Phone2
|
String
|
An alternate phone number for the driver.
|
Mobile
|
String
|
The number of the driver's mobile phone.
|
Email
|
String
|
The driver's email address.
|
EmployeeNumber
|
String
|
The driver's employee number.
|
SupervisorID
|
String
|
The company ID of the driver's supervisor.
|
HireDate
|
Date
|
The date that the driver was hired.
|
LeaveDate
|
Date
|
The date when the driver is scheduled to leave.
|
InsAccountNo
|
String
|
The Number of the driver's insurance policy.
|
InsCarrier
|
String
|
The carrier for the driver's insurance policy.
|
InsExpires
|
Date
|
Date when the driver's current insurance policy expires.
|
LicNumber
|
String
|
The number of the driver's operating license.
|
LicClass
|
String
|
The class of the driver's operating license.
|
LicState
|
String
|
The state that issued the driver's operating license.
|
LicExp
|
Date
|
Date when the driver's license needs to be renewed.
|
PinNo
|
String
|
The PIN number for the driver's PND (for drivers equipped with Verizon Connect Mobile).
|
HosStatus
|
Boolean
|
True if the driver submits hours of service reports, false otherwise.
|
HosRuleType
|
String
|
The type of regulations that the Hours of Service Reports must comply with.
|
Notes
|
String
|
Free-form notes supplied for the driver.
|
|
| UnitID |
ID of the
Unit
that this driver is assigned to
|
TopExamples
You should create a driver using the
CreateDriver(String, Int64, Int64, Property) method.
method.
Properties should include FirstName and LastName, both string values.
long driverID = myService.CreateDriver("Electrician", 2609515, props, depot);
Drivers will persist until the
DeleteDriver(Int64) method
is called.
The following code snippet illustrates how you could change the vehicle
that the driver is recorded as operating.
Driver driver = myService.GetDriver(12345);
driver.UnitID = 2609515;
myService.UpdateDriver(driver);
See Also