Click or drag to resize

DataQueryQueryPoi Method (BoundingBox)

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Gets all the Points of Interest that lie within the given BoundingBox.

Namespace:  Telogis.GeoBase
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public static Poi[] QueryPoi(
	BoundingBox bbox
)

Parameters

bbox
Type: Telogis.GeoBaseBoundingBox
The BoundingBox in which to query.

Return Value

Type: Poi
An array of Poi objects.
Examples
C#
// 
// Create new BoundingBox, NE Los Angeles (USA)
// 
BoundingBox bbox = new BoundingBox(new LatLon(34, -117), new LatLon(35, -118));

// 
// Get all POIs in the bounding box...
// 
Poi[] ps = DataQuery.QueryPoi(bbox);
Console.WriteLine("There are a total of " + ps.Length + " POIs in the given BoundingBox, but only these sell pizza:");

// 
// Display only the pizza restaurants...
// 
// See DataQuery.QueryPoi(BoundingBox, PoiType, String) to filter on POI type
// and POI name...
for (int i = 0; i < ps.Length; i++) {
    if (ps[i].FoodType == PoiRestaurantType.PIZZA) {
        Console.WriteLine("Name: " + ps[i].Name + "\nPhone: " + ps[i].Phone + "\n");
    }
}

Console.ReadLine();
See Also