Skip To Content ArcGIS for Developers Sign In Dashboard

ServiceAreaParameters Class

(Esri::ArcGISRuntime::ServiceAreaParameters)

Represents input parameters for computing service area using ServiceAreaTask. More...

Header: #include <ServiceAreaParameters>
Since: Esri::ArcGISRuntime 100.1

Public Functions

ServiceAreaParameters()
ServiceAreaParameters(const ServiceAreaParameters &other)
ServiceAreaParameters(ServiceAreaParameters &&other)
~ServiceAreaParameters()
QStringList accumulateAttributeNames() const
void clearFacilities()
void clearPointBarriers()
void clearPolygonBarriers()
void clearPolylineBarriers()
QList<double> defaultImpedanceCutoffs() const
ServiceAreaPolygonCutoffGeometry geometryAtCutoff() const
ServiceAreaOverlapGeometry geometryAtOverlap() const
bool isEmpty() const
bool isReturnPointBarriers() const
bool isReturnPolygonBarriers() const
bool isReturnPolygons() const
bool isReturnPolylineBarriers() const
bool isReturnPolylines() const
SpatialReference outputSpatialReference() const
double polygonBufferDistance() const
ServiceAreaPolygonDetail polygonDetail() const
QString searchWhereClause(const QString &sourceName) const
void setAccumulateAttributeNames(const QStringList &accumulateAttributeNames)
void setDefaultImpedanceCutoffs(const QList<double> &defaultImpedanceCutoffs)
void setFacilities(const QList<ServiceAreaFacility> &facilities)
void setFacilitiesWithFeatureTable(ArcGISFeatureTable *featureTable, const QueryParameters &queryParameters)
void setGeometryAtCutoff(ServiceAreaPolygonCutoffGeometry geometryAtCutoff)
void setGeometryAtOverlap(ServiceAreaOverlapGeometry geometryAtOverlap)
void setOutputSpatialReference(const SpatialReference &outputSpatialReference)
void setPointBarriers(const QList<PointBarrier> &pointBarriers)
void setPointBarriersWithFeatureTable(ArcGISFeatureTable *featureTable, const QueryParameters &queryParameters)
void setPolygonBarriers(const QList<PolygonBarrier> &polygonBarriers)
void setPolygonBarriersWithFeatureTable(ArcGISFeatureTable *featureTable, const QueryParameters &queryParameters)
void setPolygonBufferDistance(double polygonBufferDistance)
void setPolygonDetail(ServiceAreaPolygonDetail polygonDetail)
void setPolylineBarriers(const QList<PolylineBarrier> &polylineBarriers)
void setPolylineBarriersWithFeatureTable(ArcGISFeatureTable *featureTable, const QueryParameters &queryParameters)
void setReturnPointBarriers(bool returnPointBarriers)
void setReturnPolygonBarriers(bool returnPolygonBarriers)
void setReturnPolygons(bool returnPolygons)
void setReturnPolylineBarriers(bool returnPolylineBarriers)
void setReturnPolylines(bool returnPolylines)
void setSearchWhereClause(const QString &sourceName, const QString &searchWhereClause)
void setStartTime(const QDateTime &startTime)
void setTravelDirection(TravelDirection travelDirection)
void setTravelMode(const TravelMode &travelMode)
QDateTime startTime() const
TravelDirection travelDirection() const
TravelMode travelMode() const
ServiceAreaParameters &operator=(const ServiceAreaParameters &other)
ServiceAreaParameters &operator=(ServiceAreaParameters &&other)

Detailed Description

Represents input parameters for computing service area using ServiceAreaTask.

The ServiceAreaParameters class contains all inputs for the ServiceAreaTask, as well as settings such as the facilities, impedance attribute, accumulate and restriction attributes, backtrack (U-turn) policy, etc.

See also ServiceAreaTask::createDefaultParameters.

Member Function Documentation

ServiceAreaParameters::ServiceAreaParameters()

Default constructor.

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

ServiceAreaParameters::ServiceAreaParameters(const ServiceAreaParameters &other)

Copy constructor from other ServiceAreaParameters.

ServiceAreaParameters::ServiceAreaParameters(ServiceAreaParameters &&other)

Move constructor from other ServiceAreaParameters.

ServiceAreaParameters::~ServiceAreaParameters()

Destructor.

QStringList ServiceAreaParameters::accumulateAttributeNames() const

Returns the list of network attribute names to be accumulated with the analysis.

See also setAccumulateAttributeNames().

void ServiceAreaParameters::clearFacilities()

Clears the facilities that have been set on this ServiceAreaParameters.

void ServiceAreaParameters::clearPointBarriers()

Clears the point barriers that have been set on this ServiceAreaParameters.

void ServiceAreaParameters::clearPolygonBarriers()

Clears the polygon barriers that have been set on this ServiceAreaParameters.

void ServiceAreaParameters::clearPolylineBarriers()

Clears the polyline barriers that have been set on this ServiceAreaParameters.

QList<double> ServiceAreaParameters::defaultImpedanceCutoffs() const

Returns the default impedance cutoffs.

See also setDefaultImpedanceCutoffs().

ServiceAreaPolygonCutoffGeometry ServiceAreaParameters::geometryAtCutoff() const

Returns the behavior of service area output for a single facility when multiple cutoff values are specified.

See also setGeometryAtCutoff().

ServiceAreaOverlapGeometry ServiceAreaParameters::geometryAtOverlap() const

Returns the behavior of service area output from multiple facilities in relation to one another.

See also setGeometryAtOverlap().

bool ServiceAreaParameters::isEmpty() const

Returns whether this ServiceAreaParameters is empty.

bool ServiceAreaParameters::isReturnPointBarriers() const

Returns whether point barriers are returned with the ServiceAreaResult.

bool ServiceAreaParameters::isReturnPolygonBarriers() const

Returns whether polygon barriers are returned with the ServiceAreaResult.

bool ServiceAreaParameters::isReturnPolygons() const

Returns whether to return ServiceAreaPolygons with the ServiceAreaResult.

bool ServiceAreaParameters::isReturnPolylineBarriers() const

Returns whether polyline barriers are returned with the ServiceAreaResult.

bool ServiceAreaParameters::isReturnPolylines() const

Returns whether to return ServiceAreaPolylines with the ServiceAreaResult.

SpatialReference ServiceAreaParameters::outputSpatialReference() const

Returns the output spatial reference.

See also setOutputSpatialReference().

double ServiceAreaParameters::polygonBufferDistance() const

Returns the polygon buffer distance in meters.

The polygon buffer refers to the distance from the road the service area polygon should extend when no other reachable roads are nearby, similar to a line buffer size. This is useful if the network is very sparse and you don't want the service area to cover large areas where there are no features.

See also setPolygonBufferDistance().

ServiceAreaPolygonDetail ServiceAreaParameters::polygonDetail() const

Returns the level of detail of the output polygons.

See also setPolygonDetail().

QString ServiceAreaParameters::searchWhereClause(const QString &sourceName) const

Returns the search WHERE clause from the specified sourceName.

This function was introduced in Esri::ArcGISRuntime 100.6.

See also setSearchWhereClause().

void ServiceAreaParameters::setAccumulateAttributeNames(const QStringList &accumulateAttributeNames)

Sets the list of accumulate attribute names to be returned to accumulateAttributeNames.

See also accumulateAttributeNames().

void ServiceAreaParameters::setDefaultImpedanceCutoffs(const QList<double> &defaultImpedanceCutoffs)

Sets the default impedance cutoffs to defaultImpedanceCutoffs.

See also defaultImpedanceCutoffs().

void ServiceAreaParameters::setFacilities(const QList<ServiceAreaFacility> &facilities)

Sets the facilities for this ServiceAreaParameters from a list of ServiceAreaFacility objects (facilities).

void ServiceAreaParameters::setFacilitiesWithFeatureTable(ArcGISFeatureTable *featureTable, const QueryParameters &queryParameters)

Sets the facilities for this ServiceAreaParameters from an ArcGISFeatureTable.

void ServiceAreaParameters::setGeometryAtCutoff(ServiceAreaPolygonCutoffGeometry geometryAtCutoff)

Sets the behavior of service area output for a single facility when multiple cutoff values are specified to geometryAtCutoff.

See also geometryAtCutoff().

void ServiceAreaParameters::setGeometryAtOverlap(ServiceAreaOverlapGeometry geometryAtOverlap)

Sets the behavior of service area output from multiple facilities in relation to one another to geometryAtOverlap.

Specifies the behavior of service area output from multiple facilities in relation to one another.

See also geometryAtOverlap().

void ServiceAreaParameters::setOutputSpatialReference(const SpatialReference &outputSpatialReference)

Sets the output spatial reference to outputSpatialReference.

See also outputSpatialReference().

void ServiceAreaParameters::setPointBarriers(const QList<PointBarrier> &pointBarriers)

Sets the point barriers on this ServiceAreaParameters from a list of PointBarrier objects (pointBarriers).

void ServiceAreaParameters::setPointBarriersWithFeatureTable(ArcGISFeatureTable *featureTable, const QueryParameters &queryParameters)

Sets the point barriers for a ServiceAreaParameters from an ArcGISFeatureTable.

void ServiceAreaParameters::setPolygonBarriers(const QList<PolygonBarrier> &polygonBarriers)

Sets the polygon barriers on this ServiceAreaParameters from a list of PolygonBarrier objects (polygonBarriers).

void ServiceAreaParameters::setPolygonBarriersWithFeatureTable(ArcGISFeatureTable *featureTable, const QueryParameters &queryParameters)

Sets the polygon barriers for this ServiceAreaParameters from an ArcGISFeatureTable.

void ServiceAreaParameters::setPolygonBufferDistance(double polygonBufferDistance)

Sets the polygon buffer distance to polygonBufferDistance.

See also polygonBufferDistance().

void ServiceAreaParameters::setPolygonDetail(ServiceAreaPolygonDetail polygonDetail)

Sets the polygon detail level to polygonDetail.

See also polygonDetail().

void ServiceAreaParameters::setPolylineBarriers(const QList<PolylineBarrier> &polylineBarriers)

Sets the polyline barriers on a ServiceAreaParameters from a list of PolylineBarrier objects (polylineBarriers).

void ServiceAreaParameters::setPolylineBarriersWithFeatureTable(ArcGISFeatureTable *featureTable, const QueryParameters &queryParameters)

Sets the polyline barriers for a ServiceAreaParameters from an ArcGISFeatureTable.

void ServiceAreaParameters::setReturnPointBarriers(bool returnPointBarriers)

Sets whether to return point barriers with the ServiceAreaResult to returnPointBarriers.

See also isReturnPointBarriers().

void ServiceAreaParameters::setReturnPolygonBarriers(bool returnPolygonBarriers)

Sets whether polygon barriers are returned with the ServiceAreaResult to returnPolygonBarriers.

See also isReturnPolygonBarriers().

void ServiceAreaParameters::setReturnPolygons(bool returnPolygons)

Sets whether to return ServiceAreaPolygons with the ServiceAreaResult to returnPolygons.

See also isReturnPolygons().

void ServiceAreaParameters::setReturnPolylineBarriers(bool returnPolylineBarriers)

Sets whether polyline barriers are returned with the ServiceAreaResult to returnPolylineBarriers.

See also isReturnPolylineBarriers().

void ServiceAreaParameters::setReturnPolylines(bool returnPolylines)

Sets whether to return ServiceAreaPolylines with the ServiceAreaResult to returnPolylines.

See also isReturnPolylines().

void ServiceAreaParameters::setSearchWhereClause(const QString &sourceName, const QString &searchWhereClause)

Sets the search WHERE clause from the specified sourceName to searchWhereClause.

This filters the potential matches returned from the task based on an expression.

Note: Search WHERE clauses are not supported for online service area tasks. They are only supported when solving local service area tasks.

This function was introduced in Esri::ArcGISRuntime 100.6.

See also searchWhereClause().

void ServiceAreaParameters::setStartTime(const QDateTime &startTime)

Sets the start time of the route in UTC time to startTime.

See also startTime().

void ServiceAreaParameters::setTravelDirection(TravelDirection travelDirection)

Sets the travel direction property to travelDirection.

See also travelDirection().

void ServiceAreaParameters::setTravelMode(const TravelMode &travelMode)

Sets the travel mode to travelMode.

See also travelMode().

QDateTime ServiceAreaParameters::startTime() const

Returns the start time of the route in UTC time.

See also setStartTime().

TravelDirection ServiceAreaParameters::travelDirection() const

Returns the travel direction type.

See also setTravelDirection().

TravelMode ServiceAreaParameters::travelMode() const

Returns the travel mode.

See also setTravelMode().

ServiceAreaParameters &ServiceAreaParameters::operator=(const ServiceAreaParameters &other)

Assignment operator from other ServiceAreaParameters.

ServiceAreaParameters &ServiceAreaParameters::operator=(ServiceAreaParameters &&other)

Move operator from other ServiceAreaParameters.


Feedback on this topic?