This page describes an older version, please see latest API at http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/tasks/supportClasses/AddressCandidate.html.
Packagecom.esri.ags.tasks.supportClasses
Classpublic class AddressCandidate
InheritanceAddressCandidate Inheritance flash.events.EventDispatcher

Represents an address and its location.

See also

com.esri.ags.tasks.Locator
com.esri.ags.events.LocatorEvent


Public Properties
 PropertyDefined By
  address : Object
Address of the candidate.
AddressCandidate
  attributes : Object
Name-value pairs of field name and field value as defined in outFields in Locator.addressToLocations.
AddressCandidate
  location : MapPoint
X- and y-coordinate of the candidate.
AddressCandidate
  score : Number
Numeric score between 0 and 100 for geocode candidates.
AddressCandidate
Property Detail
addressproperty
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.

This property can be used as the source for data binding.


Implementation
    public function get address():Object
    public function set address(value:Object):void
attributesproperty 
attributes:Object

Name-value pairs of field name and field value as defined in outFields in Locator.addressToLocations.

This property can be used as the source for data binding.


Implementation
    public function get attributes():Object
    public function set attributes(value:Object):void
locationproperty 
location:MapPoint

X- and y-coordinate of the candidate.

This property can be used as the source for data binding.


Implementation
    public function get location():MapPoint
    public function set location(value:MapPoint):void
scoreproperty 
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.

This property can be used as the source for data binding.


Implementation
    public function get score():Number
    public function set score(value:Number):void