Click or drag to resize
LegacyTelogisServiceFindFleets Method
Print this page
Finds Fleets with a matching tag (if its supplied non-null) and matching properties. All fields have to match.

Namespace: Telogis.API
public Fleet[] FindFleets(
	string tag,
	Property[] properties


Type: SystemString
Only fleets with tags that match this value will be returned. Use null to match all tags.
Type: Telogis.APIProperty
An array of properties to filter fleets on. A fleet with properties A and B will not match a search for markers with property A, regardless of the property A value. Use null to match all property combinations.

Return Value

Type: Fleet
An array of fleets matching the given tag and properties.
A Fleet without every property specified in the properties argument will not be found by this query.
// find all fleets
Fleet[] allFleets = myService.FindFleets(null, null);
// find fleets by tag
Fleet[] taggedFleets = myService.FindFleets("Delivery Vehicles", null);
// find fleets by tag and properties
Fleet[] someFleets = myService.FindFleets("Delivery Vehicles", props);
// find fleets only by properties
someFleets = myService.FindFleets(null, props);
See Also