Click or drag to resize

DataQueryQueryStreets Method (BoundingBox, StreetType)

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Gets an array of Streets, of the specified StreetType, that lie underneath the given BoundingBox.

Namespace:  Telogis.GeoBase
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public static Street[] QueryStreets(
	BoundingBox bbox,
	StreetType type
)

Parameters

bbox
Type: Telogis.GeoBaseBoundingBox
The BoundingBox representing the area to be queried.
type
Type: Telogis.GeoBaseStreetType
The StreetType that should be matched.

Return Value

Type: Street
An array of Streets matching the specified type.
Remarks

This method also matches Streets that pass through bbox and continue outside its area.
Further, Streets with BoundingBoxes that intersect bbox will also be returned by this method, thus it is possible that streets will be returned that appear to lie outside rect.

Note Note
The maximum number of results that can be returned is limited to 262144.
Examples
C#
// Create a BoundingBox enclosing and intersecting with the streets to query
BoundingBox queryBox = new BoundingBox(new LatLon(33.634706, -117.900585), 
    new LatLon(33.633433, -117.899539));

// Create the QueryStreets array. In this case specifying a StreetType of 'STREETS'
Street[] queryStreets = DataQuery.QueryStreets(queryBox, StreetType.STREETS);

// Write out the results
string output = "Found " + queryStreets.Length + " streets in the BoundingBox: ";
for (int i = 0; i < queryStreets.Length; i++) {
    output += queryStreets[i].ToString() + ", ";
}
Console.WriteLine(output);
// Found 10 streets in the BoundingBox: Diana Ln, Deborah Ln, Sylvia Ln, Priscilla 
// Ln, Beryl Ln, Highland Dr, Santiago Dr, Tustin Ave, Santa Ana Ave, Orange Ave,
See Also