Class: ServiceAreaSolveResult

Description

Class added v2.0.

The result from a ServiceAreaTask operation.

Note: ServiceAreaSolveResult, and other service area related classes, requires ArcGIS Server 10.0 or above and a service area layer. A service area layer is a layer of type esriNAServerServiceAreaLayer.

Samples

Search for samples that use this class.  

Class hierarchy

esri.tasks.ServiceAreaSolveResult

Properties

Property Type Description
facilities Point[] Array of points, only returned if ServiceAreaParameters.returnFacilities is set to true.
messages NAMessage Message received when solve is completed. If a service area cannot be solved, the message returned by the server identifies the incident that could not be solved.
pointBarriers Point[] The point barriers are an array of points. They are returned only if ServiceAreaParameters.returnPointBarriers was set to true (which is not the default). If you send in the point barriers as a featureSet (instead of using DataLayer), you already have the barrers and might not need to request them back from the server.
polygonBarriers Polygon[] The polygon barriers are an array of polygons. They are returned only if ServiceAreaParameters.returnPolygonBarriers was set to true (which is not the default). If you send in the polygon barriers as a featureSet (instead of using DataLayer), you already have the barriers and might not need to request them back from the server.
polylineBarriers Polyline[] The polyline barriers are an array of polylines. They are returned only if ServiceAreaParameters.returnPolylineBarriers was set to true (which is not the default). If you send in the polyline barriers as a featureSet (instead of using DataLayer), you already have the barriers and might not need to request them back from the server.
serviceAreaPolygons Polygon[] Array of service area polygons.
serviceAreaPolylines Polyline[] Array of service area polylines.
Properties Detail

<Point[]> facilities

Array of points, only returned if ServiceAreaParameters.returnFacilities is set to true.

<NAMessage> messages

Message received when solve is completed. If a service area cannot be solved, the message returned by the server identifies the incident that could not be solved.

<Point[]> pointBarriers

The point barriers are an array of points. They are returned only if ServiceAreaParameters.returnPointBarriers was set to true (which is not the default). If you send in the point barriers as a featureSet (instead of using DataLayer), you already have the barrers and might not need to request them back from the server.

<Polygon[]> polygonBarriers

The polygon barriers are an array of polygons. They are returned only if ServiceAreaParameters.returnPolygonBarriers was set to true (which is not the default). If you send in the polygon barriers as a featureSet (instead of using DataLayer), you already have the barriers and might not need to request them back from the server.

<Polyline[]> polylineBarriers

The polyline barriers are an array of polylines. They are returned only if ServiceAreaParameters.returnPolylineBarriers was set to true (which is not the default). If you send in the polyline barriers as a featureSet (instead of using DataLayer), you already have the barriers and might not need to request them back from the server.

<Polygon[]> serviceAreaPolygons

Array of service area polygons.
Code snippets:
serviceAreaTask.solve(params,function(serviceAreaSolveResult){
  var result = serviceAreaSolveResult;
  dojo.forEach(serviceAreaSolveResult.serviceAreaPolygons,function(polygon){
    var polygonGraphic = new esri.Graphic(polygon,polygonSymbol);
    map.graphics.add(polygonGraphic);
  });
});

<Polyline[]> serviceAreaPolylines

Array of service area polylines.