DataQueryQueryPoi Method (BoundingBox) |
Namespace: Telogis.GeoBase
// // 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();