Click or drag to resize
LegacyTelogisServiceFindPointsWithinCircleForUnit Method
Print this page
Finds Points generated by a given Unit that lie within a given circle and time window.

Namespace: Telogis.API
 
Syntax
public Point[] FindPointsWithinCircleForUnit(
	long unitId,
	LatLon latLon,
	double radius,
	DateTime startTime,
	DateTime endTime
)

Parameters

unitId
Type: SystemInt64
ID of the Unit
latLon
Type: Telogis.APILatLon
Center location for the search
radius
Type: SystemDouble
Search radius (outwards from latLon) measured in radians
startTime
Type: SystemDateTime
Start of the time window
endTime
Type: SystemDateTime
End of the time window

Return Value

Type: Point
Array of Point objects that are located within radius radians of latLon that were visited by a Unit with ID unitId in the given timeframe
Examples
C#
long uid = 115327034;
LatLon ll = new LatLon(33.58135,-117.7269);
double rad = 1;
DateTime start = DateTime.Parse("2008-12-20");
DateTime end = start.AddHours(6);
Point[] points = service.FindPointsWithinCircleForUnit(uid, ll, rad, start, end);
foreach (Point p in points) {
    Console.WriteLine("{0}:{1}", p.Timestamp, p.Status);
}
See Also