ARCGIS online rest API for service area analysis not working

399
1
01-17-2022 05:19 AM
PrabalGupta
New Contributor

"https://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Network/USA/NAServer/Service Area"

In our older version of application we were using this link for creating service area, but this link is no more responding.

We are using this link: https://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Network/ESRI_DriveTime_US/GPServer/Creat... but this new link is also not generating any result. Can you suggest how we can integrate this into our current application? The application is on arcgis api for javascript 3.39.

0 Kudos
1 Reply
Noah-Sager
Esri Regular Contributor

Hi @PrabalGupta, those sampleserver links are just for testing, and subject to change, and should not be used in production applications. I believe this is an official serviceArea URL that should work properly for 3x apps:

https://route.arcgis.com/arcgis/rest/services/World/ServiceAreas/NAServer/ServiceArea_World/solveSer...

You can also check out this tutorial if you are interested in migrating to 4x (which we recommend doing):

https://developers.arcgis.com/javascript/latest/find-service-areas/

 

 

0 Kudos