Which Geometry Server should be used for production apps

3773
2
01-29-2014 08:19 PM
DanikBourdeau2
New Contributor III
Hello,
I recently had some trouble creating buffers, and after some troubleshooting on the js api forum it turned out that I was using an outdated Geometry Service.  I was using tasks.arcgisonline.com but it seems like that server is an old version so instead I was told to use sampleserver6.arcgisonline.com.

We have an ArcGIS Online Organizational License, which we use to host feature services.  We prefer to develop our own apps in house rather than use the arcgis online map viewer.  My question is, which server should we be requesting from when completing geometry services?
Tags (2)
0 Kudos
2 Replies
BjornSvensson
Esri Regular Contributor
...I was told to use sampleserver6.arcgisonline.com.

As the name indicates, this is just for samples (and testing).  You should NOT rely on this for production applications.

We have an ArcGIS Online Organizational License [...] which server should we be requesting from when completing geometry services?

If you have an AGO Organization, use the geometryservice helper URL for your organization, it's probably "utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer".   You can find this by going to [YourOwnOrg].maps.arcgis.com/sharing/rest/portals/self?f=pjson, for example http://flexteam.maps.arcgis.com/sharing/rest/portals/self?f=pjson,  look under "helperServices" and you will see the URL for your geometry utilityserver, as in:
   
"geometry": {"url": "https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer"},
0 Kudos
DanikBourdeau2
New Contributor III
Thanks for the info Bjorn.  I had no idea that even existed, but I found the url.  I will add that to my app, thanks again.
0 Kudos