Skip To Content ArcGIS for Developers Sign In Dashboard

ServiceAreaPolyline Class


A single service area polyline. More...

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

Public Functions

ServiceAreaPolyline(const ServiceAreaPolyline &other)
ServiceAreaPolyline(ServiceAreaPolyline &&other)
double fromCumulativeCost(const QString &attributeName) const
NetworkLocation fromNetworkLocation() const
Polyline geometry() const
bool isEmpty() const
double toCumulativeCost(const QString &attributeName) const
NetworkLocation toNetworkLocation() const
ServiceAreaPolyline &operator=(const ServiceAreaPolyline &other)
ServiceAreaPolyline &operator=(ServiceAreaPolyline &&other)

Detailed Description

A single service area polyline.

A service area polyline is one part of the result of a service area calculation. It covers the edges of the network that can be reached within a specified time, distance, or other travel impedance (cost). Network edges used in service area calculations are commonly used to represent streets.

For example, when calculating service areas with time as the impedance, an impedance value of "5 10 15" creates service areas of 0-5, 5-10, and 10-15 minute intervals. In this example, the ServiceAreaResult contains three ServiceAreaPolylines, each one covering network edges representing the service area reachable within each interval.

Each ServiceAreaPolyline has properties (fromCumulativeCost and toCumulativeCost) for the impedance attribute and every accumulation attribute. You can identify which interval this ServiceAreaPolyline represents by requesting these properties for the impedance attribute.

ServiceAreaPolylines are a more precise representation of a service area than ServiceAreaPolygons since service area analyses are based on measurements along the network edges.

Member Function Documentation


Default constructor.

ServiceAreaPolyline::ServiceAreaPolyline(const ServiceAreaPolyline &other)

Copy constructor from other ServiceAreaPolyline.

ServiceAreaPolyline::ServiceAreaPolyline(ServiceAreaPolyline &&other)

Move constructor from other ServiceAreaPolyline.



double ServiceAreaPolyline::fromCumulativeCost(const QString &attributeName) const

Returns "from" cumulative cost value for specified attributeName.

NetworkLocation ServiceAreaPolyline::fromNetworkLocation() const

Returns "from" network location on the network.

Polyline ServiceAreaPolyline::geometry() const

Returns the Polyline geometry of this ServiceAreaPolyline.

bool ServiceAreaPolyline::isEmpty() const

Returns whether this ServiceAreaPolyline is empty.

double ServiceAreaPolyline::toCumulativeCost(const QString &attributeName) const

Returns "to" cumulative cost value for specified attributeName.

NetworkLocation ServiceAreaPolyline::toNetworkLocation() const

Returns "to" network location on the network.

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

Assignment operator from other ServiceAreaPolyline.

ServiceAreaPolyline &ServiceAreaPolyline::operator=(ServiceAreaPolyline &&other)

Move operator from other ServiceAreaPolyline.

Feedback on this topic?