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

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

Parameters

fleetId
Type: SystemInt64
ID of the Fleet
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 Fleet with ID fleetId in the given timeframe
Examples
C#
long fid = 2228222;
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.FindPointsWithinCircleForFleet(fid, ll, rad, start, end);
foreach (Point p in points) {
    Console.WriteLine("{0}:{1}", p.Timestamp, p.Status);
}
See Also