DataQueryQueryPoi Method (BoundingBox, PoiType, String, CancellationToken) |
Namespace: Telogis.GeoBase
public static Poi[] QueryPoi( BoundingBox bbox, PoiType[] type, string nameSubstring, CancellationToken token )
// This BoundingBox covers NE Los Angeles BoundingBox bbox = new BoundingBox(new LatLon(34, -117), new LatLon(35, -118)); // This query looks only for POIs with type PetrolStation. The null parameter // tells GeoBase not to filter on the POI name. Poi[] pois = DataQuery.QueryPoi(bbox, new PoiType[] { PoiType.PetrolStation }, null); foreach (Poi poi in pois) { Console.WriteLine("Name: " + poi.Name + "\nPhone: " + poi.Phone + "\n"); }