Click or drag to resize
LegacyTelogisServiceGetDriverHistory Method
Print this page
Gets the history of a driver over a specified time period.

Namespace: Telogis.API
 
Syntax
public Point[] GetDriverHistory(
	long driverId,
	DateTime start,
	DateTime end
)

Parameters

driverId
Type: SystemInt64
ID of the driver
start
Type: SystemDateTime
Start time (UTC)
end
Type: SystemDateTime
End time (UTC)

Return Value

Type: Point
An ordered array of Point objects representing the driver's history. See example.
Examples
C#
Point[] history = service.GetDriverHistory(64653755, DateTime.Parse("2010/1/1"), DateTime.Parse("2010/1/2"));
foreach (Point p in history){
    Console.WriteLine("{0} at {1}, time was {2}", p.Status, p.Marker.Tag, p.Timestamp);
}
/* Output snippet:
* Stopped at HQ, time was 1/11/2009 12:31:00 a.m.
* Parked at HQ, time was 1/11/2009 2:31:00 a.m.
* Stopped at HQ, time was 1/11/2009 3:31:00 a.m.
* Parked at HQ, time was 1/11/2009 5:31:00 a.m.
* Stopped at HQ, time was 1/11/2009 7:31:00 a.m.
* Parked at HQ, time was 1/11/2009 9:31:00 a.m.
* Stopped at HQ, time was 1/11/2009 11:31:00 a.m.
* Parked at HQ, time was 1/11/2009 1:31:00 p.m.*/
See Also