ConfidenceScores Structure |
Namespace: Telogis.GeoBase
The ConfidenceScores type exposes the following members.
Name | Description | |
---|---|---|
Equals | Indicates whether this instance and a specified object are equal. (Inherited from ValueType.) | |
GetHashCode | Returns the hash code for this instance. (Inherited from ValueType.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ToString | Returns the fully qualified type name of this instance. (Inherited from ValueType.) |
Name | Description | |
---|---|---|
City |
Confidence that the city is correct.
| |
Name |
Confidence that the street name is correct.
| |
Number |
Confidence that the street number is correct.
| |
Postcode |
Confidence that the postcode is correct.
| |
Prefix |
Confidence that the street prefix is correct.
e.g. 'North Main Street', 'North' is the prefix.
| |
Region |
Confidence that the region (or State) is correct.
| |
Subregion |
Confidence that the subregion is correct.
| |
Suffix |
Confidence that the street suffix is correct.
| |
TypeAfter |
Confidence that the street type is correct.
The type-after refers to 'Street', 'Road', 'Drive', etc.
| |
TypeBefore |
Confidence that the prefixed-type is correct.
e.g. In 'Rue Voltaire', 'Rue' is the type-before.
|
// Geocode an address GeocodeAddress addr = GeoCoder.GeoCode("20 Enterprise, Aliso Viejo, California", Country.USA)[0]; if (addr == null) { Console.WriteLine("Check you've got US map data installed!"); return; } // How confident is the geocoder about this match? Console.WriteLine(String.Format("Overall confidence: {0}", addr.Confidence)); // How confident is the geocoder that it found the right state? Console.WriteLine(String.Format("Region confidence: {0}", addr.ConfidenceScores.Region));