Hello....I am a newbie to ArcGIS API for Python. I would like to write a script a that queries a feature layer to find the 8 closets points from a given location and output the results as a json object. Does anyone have any references or sample scripts they could point my way to start me on my journey? Your input is much appreciated.
For the second part of the process, you can probably join that table back onto the features and then use Features To Json to create your Json object.
FeaturesToJson
Check out Generate Near Table. You can specify the closest_count parameter to how many results you want; 8 in your case.
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.