Autocomplete against geocode.arcgis.com?

المشرف العام

Administrator
طاقم الإدارة
I have built a tool that allows my users to perform geocode requests against the World Geocoding Service provided from Esri.

I would like to extend my tool to have an autocomplete feature, similar to how this can be achieved with the Autocomplete class from the Google Geocode API.

Although there is not a similar class available at the Esri service end, I was thinking that you could still hit the geocode service with a GET request, after listening for a slight delay after each keystroke from the end-user in something like a combo-box, and just return the top 5 results based on score.

I am looking for an answer that provides some code (can be pseudocode, or any language) on how to accomplish this, or if this workflow is even achievable. Something similar to this, but against the Esri Geocode service as opposed to map services.



أكثر...
 
أعلى