Class ServiceAreaPolyline

java.lang.Object
com.esri.arcgisruntime.tasks.networkanalysis.ServiceAreaPolyline

public final class ServiceAreaPolyline extends Object
Defines a service area polyline calculated with a ServiceAreaTask.

Represents the network edges that can be reached within the given impedance.

Since:
100.1.0
  • Method Details

    • getGeometry

      public Polyline getGeometry()
      Gets the service area polyline's geometry.
      Returns:
      service area polyline's geometry
      Since:
      100.1.0
    • getFromNetworkLocation

      public NetworkLocation getFromNetworkLocation()
      Gets the network location where the polyline begins.
      Returns:
      the network location where the polyline begins
      Since:
      100.1.0
    • getToNetworkLocation

      public NetworkLocation getToNetworkLocation()
      Gets the network location where the polyline ends.
      Returns:
      the network location where the polyline ends
      Since:
      100.1.0
    • getFromCumulativeCost

      public double getFromCumulativeCost(String attributeName)
      Gets the cumulative cost value of the path from the facility to the beginning of the polyline.

      List of the supported attributes can be obtained from ServiceAreaTaskInfo.getCostAttributes().

      Parameters:
      attributeName - the name of an attribute
      Returns:
      a value of the cumulative cost
      Since:
      100.1.0
    • getToCumulativeCost

      public double getToCumulativeCost(String attributeName)
      Gets the cumulative cost value of the path from the facility to the end of the polyline.

      List of the supported attributes can be obtained from ServiceAreaTaskInfo.getCostAttributes().

      Parameters:
      attributeName - the name of an attribute
      Returns:
      a value of the cumulative cost
      Since:
      100.1.0