When creating an Address Locator it is possible to map "Additional Field" to a field in your reference feature class. I have no issue doing this but am unable to figure out how to access this information when using the Address Locator. The help shows:
ArcGIS Help (10.2, 10.2.1, and 10.2.2) ...
Once I have published my Address Locator to arcgis server, how can I get to the PropertyOwner information when I use this address locator in arcgis javascript? I am able to geocode address and reverse geocode locations in my map but want to access the additional information.
I hope this makes sense...
Thanks,
Janice.
I am marking Chris with the correct answer since he pointed us in the direction of looking at the outfields. However, the information provided by Kelly and Tim is worth looking at! Thanks to all for helping me with this issue.
Solved! Go to Solution.
I also tried the candidate one:
Find Address Candidates: (GeoCode/AddressLocator_Test2)
I pulled a Skagit County addy:
910 Cleveland Avenue, Mount Vernon, 98273
And returned:
Shape:
Point:
X:
Y:
Score: 95.21
Address: 910 CLEVELAND AVE, MVW, 98273
You'll probably have to add the out fields, I believe...
Does anyone at ESRI know how to access these additional fields? I assume they are there for a reason.
Thanks,
Janice.
Janice,
These threads have some info regarding this:
http://support.esri.com/en/knowledgebase/techarticles/detail/39887
Hope this helps!
Do you have a service published that includes this additional field, for testing purposes?
Tim and Chris thanks for the input...
Chris - I have already added the information into my custom address locator and see it in the xml file that is created for the locator. I am on 10.2.2 and apparently the xml now includes the User Fields.
Tim - I have a service published for testing, here: GeoCode/AddressLocator_Test2 (GeocodeServer)
Thanks,
Janice.
One more thing, do you have a test address?
I tried this (updated answer):
{"records":[{"attributes":{"STREET": "910 Cleveland Avenue","CITY": "Mount Vernon","ZIP":"98273"}}]}
And returned:
address:
location:
score:
attributes:
I also tried the candidate one:
Find Address Candidates: (GeoCode/AddressLocator_Test2)
I pulled a Skagit County addy:
910 Cleveland Avenue, Mount Vernon, 98273
And returned:
Shape:
Point:
X:
Y:
Score: 95.21
Address: 910 CLEVELAND AVE, MVW, 98273
You'll probably have to add the out fields, I believe...
Chris and Tim,
Using the service and an address I get:
Geocoded Addresses:
address:
location:
score:
attributes:
and the "User_fld" is what I am after. The value for this address in the User_fld is "44000". This is great! How do I get to it using the locator in javascript?
Janice.
Sadly the javascript api only returns the following attributes.