I am using the Report Streetlight Problem JavaScript app and want to search for a location based on address, intersection, or point of interest. I can get it to do the first two or the last but not all three. I've looked at Locator under the Javascript API (https://developers.arcgis.com/javasc...cator-amd.html) and the REST API Help for Single Input Geocoding (http://resources.arcgis.com/en/help/...0000015000000/) but neither fully documents some of the properties. Below are the Locator properties from the config.js file:
I'm pretty sure I need to modify CandidateFields and LocatorFieldValues and possibly LocatorFieldName but I can't find any documentation for them. Can anybody provide some so I know what the possible property values are?
i think the reason you're having a hard time finding documentation on this topic is because its a convention thats related to the REST spec for geocoding services, but also kind of peculiar to local government templates.
CandidateFields refers to the fields returned for individual results. You set this to get control over what attributes are present in your results.
LocatorFieldValues refers to the name of the individual locator a candidate was located by (since the service is a composite). I believe that setting this property allows you to restrict individual locators that you want to consider results from.
i think the reason you're having a hard time finding documentation on this topic is because its a convention thats related to the REST spec for geocoding services, but also kind of peculiar to local government templates.
CandidateFields refers to the fields returned for individual results. You set this to get control over what attributes are present in your results.
LocatorFieldValues refers to the name of the individual locator a candidate was located by (since the service is a composite). I believe that setting this property allows you to restrict individual locators that you want to consider results from.