How can I access the "additional fields" in a locator?

5414
14
Jump to solution
04-21-2015 04:55 PM
JaniceBaird
Occasional Contributor II

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.

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
ChrisSmith7
Frequent Contributor

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:

      1274832.950875386

Y:

      520246.64341954107

Score: 95.21

Address: 910 CLEVELAND AVE, MVW, 98273

You'll probably have to add the out fields, I believe...

View solution in original post

14 Replies
JaniceBaird
Occasional Contributor II

Does anyone at ESRI know how to access these additional fields? I assume they are there for a reason.

Thanks,

Janice.

0 Kudos
TimWitt2
MVP Alum

Do you have a service published that includes this additional field, for testing purposes?

0 Kudos
JaniceBaird
Occasional Contributor II

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.

0 Kudos
TimWitt2
MVP Alum

One more thing, do you have a test address?

0 Kudos
ChrisSmith7
Frequent Contributor

I tried this (updated answer):

{"records":[{"attributes":{"STREET": "910 Cleveland Avenue","CITY": "Mount Vernon","ZIP":"98273"}}]}

And returned:

address:

      910 CLEVELAND AVE, MVW, 98273

location:

      {"x":1274832.9507542253,"y":520246.6433484256}

score:

      95.21

attributes:

  • {"ResultID":-1,"Status":"M","Score":95.21,"Match_addr":"910 CLEVELAND AVE, MVW, 98273","Side":"L","Ref_ID":7234,"Street_ID":"0","User_fld":"03085","Addr_type":"StreetAddress"}
0 Kudos
ChrisSmith7
Frequent Contributor

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:

      1274832.950875386

Y:

      520246.64341954107

Score: 95.21

Address: 910 CLEVELAND AVE, MVW, 98273

You'll probably have to add the out fields, I believe...

JaniceBaird
Occasional Contributor II

Chris and Tim,

Using the service and an address I get:

Geocoded Addresses:

address:

      1019 MCLEAN RD, MVW, 98273

location:

      {"x":1272551.3920042217,"y":521938.5593484193}

score:

      89.04

attributes:

      {"ResultID":-1,"Status":"M","Score":89.04,"Match_addr":"1019 MCLEAN RD, MVW, 98273","Side":"R","Ref_ID":6525,"Street_ID":"0","User_fld":"44000","Addr_type":"StreetAddress"}

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.

0 Kudos
TimWitt2
MVP Alum

Sadly the javascript api only returns the following attributes.

geo.png