ServiceAreaResult Class

  • ServiceAreaResult
  • class Esri::ArcGISRuntime::ServiceAreaResult

    A class that describes the service area result. More...

    Header: #include <ServiceAreaResult.h>
    Since: Esri::ArcGISRuntime 100.1

    Public Functions

    ServiceAreaResult()
    ServiceAreaResult(const Esri::ArcGISRuntime::ServiceAreaResult &other)
    ServiceAreaResult(Esri::ArcGISRuntime::ServiceAreaResult &&other)
    ~ServiceAreaResult()
    QList<Esri::ArcGISRuntime::ServiceAreaFacility> facilities() const
    bool isEmpty() const
    QStringList messages() const
    QList<Esri::ArcGISRuntime::PointBarrier> pointBarriers() const
    QList<Esri::ArcGISRuntime::PolygonBarrier> polygonBarriers() const
    QList<Esri::ArcGISRuntime::PolylineBarrier> polylineBarriers() const
    QList<Esri::ArcGISRuntime::ServiceAreaPolygon> resultPolygons(int facilityIndex) const
    QList<Esri::ArcGISRuntime::ServiceAreaPolyline> resultPolylines(int facilityIndex) const
    Esri::ArcGISRuntime::ServiceAreaResult &operator=(const Esri::ArcGISRuntime::ServiceAreaResult &other)
    Esri::ArcGISRuntime::ServiceAreaResult &operator=(Esri::ArcGISRuntime::ServiceAreaResult &&other)

    Detailed Description

    The result from ServiceAreaTask::solveServiceAreaAsync(const Esri::ArcGISRuntime::ServiceAreaParameters&) operation. A Service area result object represents the results of the operation. It can contains the following (if you enabled returning corresponding property on parameters): An array of polygons and/or lines representing the service areas. An array of graphics representing the facilities used in the analysis. An arrays of barriers (point, polyline, polygon).

    Relevant samples:

    Member Function Documentation

    ServiceAreaResult::ServiceAreaResult()

    Default constructor.

    Warning: This is for convenience only and will construct an empty object.

    ServiceAreaResult::ServiceAreaResult(const Esri::ArcGISRuntime::ServiceAreaResult &other)

    Copy constructor from other ServiceAreaResult.

    ServiceAreaResult::ServiceAreaResult(Esri::ArcGISRuntime::ServiceAreaResult &&other)

    Move constructor from other ServiceAreaResult.

    ServiceAreaResult::~ServiceAreaResult()

    Destructor.

    QList<Esri::ArcGISRuntime::ServiceAreaFacility> ServiceAreaResult::facilities() const

    Returns the list of the facilities that were used in the ServiceAreaTask.

    bool ServiceAreaResult::isEmpty() const

    Returns a bool that determines whether this ServiceAreaResult is empty.

    QStringList ServiceAreaResult::messages() const

    Returns the messages.

    Messages received when solve is completed. If a route cannot be solved, the message returned by the server identifies the route that could not be solved.

    QList<Esri::ArcGISRuntime::PointBarrier> ServiceAreaResult::pointBarriers() const

    Returns the list of the point barriers.

    Barriers are only returned if the returnPointBarriers property of ServiceAreaParameters is true.

    See also ServiceAreaParameters.

    QList<Esri::ArcGISRuntime::PolygonBarrier> ServiceAreaResult::polygonBarriers() const

    Returns the list of the polygon barriers.

    Barriers are only returned if the isReturnPolygonBarriers property of ServiceAreaParameters is true.

    See also ServiceAreaParameters::isReturnPolygonBarriers.

    QList<Esri::ArcGISRuntime::PolylineBarrier> ServiceAreaResult::polylineBarriers() const

    Returns the list of the polyline barriers.

    Barriers are only returned if the returnPolylineBarriers property of ServiceAreaParameters is true.

    See also ServiceAreaParameters::isReturnPolylineBarriers.

    QList<Esri::ArcGISRuntime::ServiceAreaPolygon> ServiceAreaResult::resultPolygons(int facilityIndex) const

    Returns a collection of the result polygons.

    • facilityIndex - The index of facility.

    Result polygons are only returned if the returnPolygons property of ServiceAreaParameters is true.

    See also PolygonBarrier and ServiceAreaParameters.

    QList<Esri::ArcGISRuntime::ServiceAreaPolyline> ServiceAreaResult::resultPolylines(int facilityIndex) const

    Returns a collection of the result polylines.

    • facilityIndex - The index of facility.

    Result polylines are only returned if the returnPolylines property of ServiceAreaParameters is true.

    See also ServiceAreaParameters.

    Esri::ArcGISRuntime::ServiceAreaResult &ServiceAreaResult::operator=(const Esri::ArcGISRuntime::ServiceAreaResult &other)

    Assignment operator from other ServiceAreaResult.

    Esri::ArcGISRuntime::ServiceAreaResult &ServiceAreaResult::operator=(Esri::ArcGISRuntime::ServiceAreaResult &&other)

    Move operator from other ServiceAreaResult.

    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.