LegacyTelogisServiceGetDriverHistory Method |
Namespace: Telogis.API
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.*/