DataQueryQueryLinks Method (BoundingBox, CancellationToken) |
Namespace: Telogis.GeoBase
// Create a BoundingBox enclosing and intersecting the streets to query BoundingBox queryBox = new BoundingBox(new LatLon(33.634192, -117.900444)); CancellationToken token = new CancellationToken(); // Create the QueryLinks array. StreetLink[] queryLinks = DataQuery.QueryLinks(queryBox, token); // Compile some information from the array, then print it string output = "Found " + queryLinks.Length + " street links in the BoundingBox." + " The LinkID of the first link found was " + queryLinks[0].LinkId; Console.WriteLine(output); // Found 193 street links in the BoundingBox. The LinkID of the first link found was 24070625