Geocoder will not return more than 4 results

2907
2
09-14-2015 12:56 PM
RandallClark2
Occasional Contributor II

So i have an address locator built to search off of a specific field in  one of my feature classes. It's hosted on my server and pulled in to AGOL as a geocoder service as a geocoder service it can now be used in the search bar allowing user to search for this by name...however the problem is that it will not return more than four records.

So how do i \ can i configure the geocoder service to return the all the results when ran, not just 4.

0 Kudos
2 Replies
YueWu1
by Esri Regular Contributor
Esri Regular Contributor

Hi Randall,

Please check this documentation and the parameter 'maxLocations'

will control the return address suggestion.

suggest—ArcGIS REST API: World Geocoding Service | ArcGIS for Developers

Hope this can help

RandallClark2
Occasional Contributor II

While useful, that may be a little bit out of my skill level right now.

But anyways not one  to back down and trying to understand that the best i can i went to edit the properties of geocoder service i published,  accessing the REST endpoint via AGS admin directory and added a line "maxLocations": "500", then saved the edits, stop and restarted my service and still when i run in AGOL it still only comes back with 4 hits

0 Kudos