I am using ArcGIS REST services from a server-side app and parsing the JSON response. I need information from several different layers on the same service, and my queries are always for points.
Is there a way to make a single request that amalgamates results from multiple layers?
At present I can meet my requirements by making multiple requests, for example to endpoints at
- /arcgis/rest/services/foo/bar/MapServer/0/query?geometry=152.9259%2C-27.5516&geometryType=esriGeometryPoint&inSR=&spatialRel=esriSpatialRelIntersects...
- /arcgis/rest/services/foo/bar/MapServer/2/query?...as above...
- /arcgis/rest/services/foo/bar/MapServer/6/query?...as above...
My question is, am I missing some aggregated service that enables me to make a single request to multiple layers of the same service for the same spatial query?