Code Samples for REST APIs

1459
2
08-17-2016 08:36 AM
RobLabs
New Contributor

I would like to use the Spatial Analysis Service "Find Existing Locations" in both an iOS and Android app.

Do you know if there are any working code samples that I can learn how to use Find Existing Locations?

I am familiar with REST, but I'm looking for either 

  • A working iOS or Android example, or
  • a curl example, but I don't know how to fill in the server name 
    curl http://<analysis url>/FindExistingLocations/submitJob

REST API that I want to use.

Find Existing Locations—ArcGIS REST API: Spatial Analysis Service | ArcGIS for Developers 

Tags (4)
0 Kudos
2 Replies
RobLabs
New Contributor

Thanks for the reply, Dan.  But I am looking specifically for the URL for FindExistingLocations.  I am aware of the ESRI Github repo and did not find what I need.

For example, I need the server name to build up the URL request

curl http://<analysis url>/FindExistingLocations/submitJob

The sample I saw for Swift makes references to sampleserver3.

let kCFTask = "http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Network/USA/NAServer/Closest%20Facility"