Click or drag to resize

GeocodeAddressHasBoundingBox Field

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Whether this GeoCodeAddress has a bounding box, in which case BoundingBox is set to the bounding box and Location is set to its centroid. Bounding boxes are only currently returned for region-level GeoCodeAddresses.

Namespace:  Telogis.GeoBase
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public bool HasBoundingBox

Field Value

Type: Boolean
Examples
C#
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);
}
See Also