Hide Table of Contents
esri
esri/arcgis
esri/dijit
esri/dijit/analysis
esri/dijit/geoenrichment
esri/dijit/geoenrichment/ReportPlayer
esri/geometry
esri/layers
esri/renderers
esri/symbols
esri/tasks
esri/tasks/datareviewer
esri/tasks/geoenrichment
esri/tasks/locationproviders
require(["esri/tasks/AddressCandidate"], function(AddressCandidate) { /* code goes here */ });
| Name | Type | Summary |
|---|---|---|
| address | Object | Address of 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. |
Object> addressObject> attributesPoint> locationNumber> score
require([
"dojo/_base/array", ...
], function(array, ... ) {
array.forEach(addressCandidates, function(candidate) {
if (candidate.score > score && candidate.attributes.Loc_name === "US_RoofTop") {
stop = candidate;
score = candidate.score;
}
});
...
});