Fleet Class |
Namespace: Telogis.API
The Fleet type exposes the following members.
Name | Description | |
---|---|---|
ID | ||
Name | ||
Properties |
Name | Description | |
---|---|---|
ID |
Unique ID for this fleet
| |
Name |
The name of this fleet
| |
Properties |
User-configurable properties that may be applied to this fleet
|
// create a fleet of electricians and plumbers long efid = myService.CreateFleet("Electricians", e_props); long pfid = myService.CreateFleet("Plumbers", p_props); ... // add the electrician's vans to the electrician fleet foreach (long elecUnit in allElecUnits) myService.AddUnitToFleet(efid, elecUnit);
Alternatively, we could have created a single fleet and added both electricians and plumbers to the fleet. To find the electricians (and not the plumbers) we could use the FindDrivers(String, Property) (or FindUnits(String, Property) ) method.
A fleet will persist until it is removed, using the DeleteFleet(Int64) method.