Description
Represents an address and its location. AddressCandidate has no constructor.
Class hierarchy
esri.tasks.AddressCandidate
Properties
| address |
Object
|
Address of the candidate. It contains one property for each of the address fields defined by a geocode service. Each address field describes some part of the address information for the candidate. |
| attributes |
Object
|
Name value pairs of field name and field value as defined in outFields in Locator.addressToLocations. |
| location |
Point
|
X- and y-coordinate of the candidate. |
| score |
Number
|
Numeric score between 0 and 100 for geocode candidates. A candidate with a score of 100 means a perfect match, and 0 means no match. |
Properties Detail
Address of the candidate. It contains one property for each of the address fields defined by a geocode service. Each address field describes some part of the address information for the candidate.
X- and y-coordinate of the candidate.
Numeric score between 0 and 100 for geocode candidates. A candidate with a score of 100 means a perfect match, and 0 means no match.
Code snippets:
dojo.forEach(addressCandidates, function(candidate) {
if (candidate.score > score && candidate.attributes.Loc_name === "US_RoofTop") {
stop = candidate;
score = candidate.score;
}
});