Skip To Content ArcGIS for Developers Sign In Dashboard

ServiceAreaFacility Class

(Esri::ArcGISRuntime::ServiceAreaFacility)

Represents a service area facility. More...

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

Public Functions

ServiceAreaFacility()
ServiceAreaFacility(const Point &point)
ServiceAreaFacility(const ServiceAreaFacility &other)
ServiceAreaFacility(ServiceAreaFacility &&other)
~ServiceAreaFacility()
double addedCost(const QString &attributeName) const
CurbApproach curbApproach() const
double distanceToNetworkLocation() const
int facilityId() const
Point geometry() const
QList<double> impedanceCutoffs() const
bool isEmpty() const
LocationStatus locationStatus() const
QString name() const
NetworkLocation networkLocation() const
void setAddedCost(const QString &attributeName, double costValue)
void setCurbApproach(CurbApproach curbApproach)
void setFacilityId(int id)
void setGeometry(const Point &point)
void setImpedanceCutoffs(const QList<double> &impedanceCutoffs)
void setName(const QString &name)
void setNetworkLocation(const NetworkLocation &networkLocation)
ServiceAreaFacility &operator=(const ServiceAreaFacility &other)
ServiceAreaFacility &operator=(ServiceAreaFacility &&other)

Detailed Description

Represents a service area facility.

Facilities represent locations from which service areas need to be calculated. For example, a fire station can be set as a facility to find which areas it can serve within a 10 minute service area. A hospital can be set as the facility to find what proportion of the population is within a 2 mile driving distance.

Member Function Documentation

ServiceAreaFacility::ServiceAreaFacility()

Default constructor.

ServiceAreaFacility::ServiceAreaFacility(const Point &point)

Constructor that takes in a point.

ServiceAreaFacility::ServiceAreaFacility(const ServiceAreaFacility &other)

Copy constructor from other ServiceAreaFacility.

ServiceAreaFacility::ServiceAreaFacility(ServiceAreaFacility &&other)

Move constructor from other ServiceAreaFacility.

ServiceAreaFacility::~ServiceAreaFacility()

Destructor.

double ServiceAreaFacility::addedCost(const QString &attributeName) const

Returns the added cost of the attribute named attributeName.

See also setAddedCost().

CurbApproach ServiceAreaFacility::curbApproach() const

Returns the curb approach for this ServiceAreaFacility.

See also setCurbApproach().

double ServiceAreaFacility::distanceToNetworkLocation() const

Returns the distance in meters along a network path of this ServiceAreaFacility to a network feature.

Returns NaN if the facility has not been located.

int ServiceAreaFacility::facilityId() const

Returns ID of this facility.

This function was introduced in Esri::ArcGISRuntime 100.6.

See also setFacilityId().

Point ServiceAreaFacility::geometry() const

Returns the geometry indicating where this ServiceAreaFacility is located.

See also setGeometry().

QList<double> ServiceAreaFacility::impedanceCutoffs() const

Returns the impedance cutoffs of this ServiceAreaFacility.

See also setImpedanceCutoffs().

bool ServiceAreaFacility::isEmpty() const

Returns true if this ServiceAreaFacility is empty.

LocationStatus ServiceAreaFacility::locationStatus() const

Returns the LocationStatus of this ServiceAreaFacility.

QString ServiceAreaFacility::name() const

Returns the name of the ServiceAreaFacility.

See also setName().

NetworkLocation ServiceAreaFacility::networkLocation() const

Returns the network location of this ServiceAreaFacility.

See also setNetworkLocation().

void ServiceAreaFacility::setAddedCost(const QString &attributeName, double costValue)

Sets the costValue for the attribute named attributeName.

See also addedCost().

void ServiceAreaFacility::setCurbApproach(CurbApproach curbApproach)

Sets the curb approach of this ServiceAreaFacility to curbApproach.

See also curbApproach().

void ServiceAreaFacility::setFacilityId(int id)

Sets the id of this facility.

This function was introduced in Esri::ArcGISRuntime 100.6.

See also facilityId().

void ServiceAreaFacility::setGeometry(const Point &point)

Sets the geometry indicating where this ServiceAreaFacility is located to point.

See also geometry().

void ServiceAreaFacility::setImpedanceCutoffs(const QList<double> &impedanceCutoffs)

Sets the impedance cutoffs of this ServiceAreaFacility to impedanceCutoffs.

See also impedanceCutoffs().

void ServiceAreaFacility::setName(const QString &name)

Sets the name of the ServiceAreaFacility.

See also name().

void ServiceAreaFacility::setNetworkLocation(const NetworkLocation &networkLocation)

Sets the network location of this ServiceAreaFacility to networkLocation.

See also networkLocation().

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

Assignment operator from other ServiceAreaFacility.

ServiceAreaFacility &ServiceAreaFacility::operator=(ServiceAreaFacility &&other)

Move operator from other ServiceAreaFacility.


Feedback on this topic?