Click or drag to resize

GeocodeAddress Class

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Represents a LatLon and a street address. A GeoCodeAddress is returned as the result of forward geocoding (the conversion of a string address, eg "20 enterprise, aliso viejo, ca", to a street address containing detailed location information).
Inheritance Hierarchy

Namespace:  Telogis.GeoBase
Assembly:  geobase.net (in geobase.net.dll) Version: 4.89.0.0
Syntax
public abstract class GeocodeAddress

The GeocodeAddress type exposes the following members.

Properties
  NameDescription
Public propertyCode exampleAddressRanges
Gets the known street-number ranges for the result of this geocode. If this address is not a street, or if a specific street-number was provided as part of the search, null will be returned. If there is no known number data for this street, an empty array will be returned.
Public propertyCode exampleCity
The name of the city.
Public propertyConfidenceScores
The confidence that this address matches the Geocoded address. The confidence is only applicable to forward geocode results; it is not applicable to drill down geocode results.
Public propertyFormattedAddress
Returns a long line formatted string representing a structured address returned from a geocoding operation.
Public propertyItemInt32
Gets or sets the value of a field, given the field's index.
Public propertyItemString
Gets or sets a field given the field's name.
Public propertyItemString, String
Gets or sets a field based on the given language and field name.
Public propertyCode exampleLine1 Obsolete.
The first line of this address in the form "1234 Main St".
Public propertyCode examplePostalCode
The zip code of this address.
Public propertyCode exampleRegion
The name of the region.
Public propertyCode exampleStreet
The name of the street.
Public propertyCode exampleSubregions
The name of the regions within a city.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetFields
Gets the fields contained within this address; such as street name, city and postal (zip) code.
Public methodGetFields(String)
Implemented by derived classes to get the fields contained within this address, in the specified language.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetOrdinal(String)
Finds the ordinal number of the specified field within the GeoCodeAddress structure, in the default language (English).
Public methodGetOrdinal(String, String)
Finds the ordinal number of the specified field within the GeoCodeAddress structure, in a language specified by three-letter ISO country code.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodCode exampleToGeocodeResult
Stores the address used to generate a geocode result as a RawAddress. The result is found in FoundAddress.
Public methodToString
Format the address for display, depending on the information available.
(Overrides ObjectToString.)
Top
Fields
  NameDescription
Public fieldCode exampleBoundingBox
A bounding box containing the address. Only present if HasBoundingBox is true. If a bounding box is present then Location is set to the centroid of the bounding box.
Public fieldCode exampleConfidence
An expression of confidence of the geocoding engine in nominating this result as being the correct result. The confidence is a decimal number between 0 and 1; with 1 representing the highest confidence. The confidence is only applicable to forward geocode results; it is not applicable to drill down geocode results.
Public fieldCode exampleCountry
The name of the country that this GeoCodeAddress is in.
Public fieldCode exampleHasBoundingBox
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.
Public fieldIntersection
A LatLon representing the point where the address connects with the street network.
Public fieldCode exampleLocation
A LatLon representing the coordinate location of the address.
Public fieldCode exampleMatchType
Indicates the primary search method type that was used to find this result.
Public fieldMaxNumber
Represents the maximum value of the range of street numbers between which this address lies.
Public fieldMinNumber
Represents the minimum value of the range of street numbers between which this address lies.
Public fieldCode exampleNumber
The exact street number (if the exact street number is not available this value will be < 1).
Top
Remarks

If GeoCoding was unable to return an exact street number, MinNumber and MaxNumber will represent (respectively) the minimum and maximum street numbers between which the address lies.

The MatchType field will indicate the primary attribute used by the geocoding process to match the address string with a location within the map data. If using Point Address Data and geocoding for a numbered address, then a MatchType of MATCH_POINT_ADDRESS indicates the result is a point address, while MATCH_STREET indicates that address interpolation has been used as a fallback.

Related articles: Geocoding Concept, Address Interpolation and Point Address Data, Searching for a Location.

Examples
C#
GeocodeAddress[] addr = GeoCoder.GeoCode("20 Enterprise, Aliso Viejo, California", Country.USA);
if (addr.Length > 0) {
    for (int i = 0; i < addr.Length; i++) {
            Console.WriteLine("Found '{0}' at LatLon {1}", addr[i], addr[i].Location);
            // Found '20 Enterprise, Aliso Viejo, California, 92656, USA' at LatLon 33.584444,-117.731874
    }
} else {
    Console.Write("No matching address found");
}
See Also