GeocodeAddress Class |
Namespace: Telogis.GeoBase
The GeocodeAddress type exposes the following members.
Name | Description | |
---|---|---|
AddressRanges |
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.
| |
City |
The name of the city.
| |
ConfidenceScores |
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.
| |
FormattedAddress |
Returns a long line formatted string representing a structured address returned from a geocoding operation.
| |
ItemInt32 |
Gets or sets the value of a field, given the field's index.
| |
ItemString |
Gets or sets a field given the field's name.
| |
ItemString, String |
Gets or sets a field based on the given language and field name.
| |
Line1 | Obsolete.
The first line of this address in the form "1234 Main St".
| |
PostalCode |
The zip code of this address.
| |
Region |
The name of the region.
| |
Street |
The name of the street.
| |
Subregions |
The name of the regions within a city.
|
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetFields |
Gets the fields contained within this address; such as street name, city and postal (zip) code.
| |
GetFields(String) |
Implemented by derived classes to get the fields contained within this address, in the specified language.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetOrdinal(String) |
Finds the ordinal number of the specified field within the GeoCodeAddress structure, in the
default language (English).
| |
GetOrdinal(String, String) |
Finds the ordinal number of the specified field within the GeoCodeAddress structure, in a
language specified by three-letter ISO country code.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ToGeocodeResult |
Stores the address used to generate a geocode result as a RawAddress.
The result is found in FoundAddress.
| |
ToString |
Format the address for display, depending on the
information available. (Overrides ObjectToString.) |
Name | Description | |
---|---|---|
BoundingBox |
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.
| |
Confidence |
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.
| |
Country |
The name of the country that this GeoCodeAddress is in.
| |
HasBoundingBox |
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.
| |
Intersection |
A LatLon representing the
point where the address connects with the street network.
| |
Location |
A LatLon representing the
coordinate location of the address.
| |
MatchType |
Indicates the primary search method type that was used to find
this result.
| |
MaxNumber |
Represents the maximum value of the range of street numbers between
which this address lies.
| |
MinNumber |
Represents the minimum value of the range of street numbers between
which this address lies.
| |
Number |
The exact street number (if the exact street number is not available
this value will be < 1).
|
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.
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"); }