Select to view content in your preferred language

Geocoding Service - Attributes in returned candidates?

911
2
08-23-2011 01:24 PM
BrentStevener
Deactivated User
On the World Places Locator page, there is a 'Technical Notes' section that has more information that lists a variety of attributes. Is this information that we have access to in the result? All I see in the Silverlight API for the AddressCandidate class is a Score, Location, Address, and Attributes property, and the 'Attributes' property is always nothing in my results. Is there something I am missing? Some way to get candidate attributes returned?

P.S. I am doing a simple locator query similar to this ESRI sample
0 Kudos
2 Replies
DominiqueBroux
Esri Frequent Contributor

and the 'Attributes' property is always nothing in my results.


You have to set the OutFields of the AddressToLocationParameters.
For example : addressParams.outFields.Add("*"); to get all fields.

Then the Attributes property of the AddressCandidate will contain the expected attribute values.
0 Kudos
BrentStevener
Deactivated User
That will do it. Thanks.
0 Kudos