GeocodeAddressHasBoundingBox Field |
Namespace: Telogis.GeoBase
String resString; GeocodeAddress addr = GeoCoder.GeoCode("20 Enterprise, Aliso Viejo, California", Country.USA)[0]; if (addr != null) { IGeocodeResult result = addr.ToGeocodeResult(); string shortAddress = AddressFormatter.Default.GetShortLineForm(result.FoundAddress, "en-US"); if (addr.HasBoundingBox) { resString = "has"; } else { resString = "does not have"; } // "Address '20 Enterprise' does not have a BoundingBox" or // "Address '20 Enterprise' has a BoundingBox" Console.WriteLine("Address '{0}' {1} a BoundingBox", shortAddress, resString); }