ServiceAreaTask

class ServiceAreaTask : ApiKeyResource, Loadable, Resourceable

Instances of this class represent tasks that can compute service areas. A Service Area task allows you to calculate areas that can be serviced (reached) from a given location. A service area is a region that encompasses all accessible streets, that is, streets that lie within a specified impedance. For instance, the 10-minute service area for a facility includes all the streets that can be reached within 10 minutes from that facility.

Since

200.1.0

Constructors

Link copied to clipboard
constructor(pathToDatabase: String, networkName: String)

Creates a service area task with path to geodatabase.

constructor(dataset: TransportationNetworkDataset)

Creates a service area task with transportation network dataset.

constructor(url: String)

Creates a service area task with URL. Creates a service area task.

Properties

Link copied to clipboard

Service area task info. Information about this service area task. For a service area task using an online service, this will involve a network call.

Link copied to clipboard

Transportation network dataset.

Link copied to clipboard
val url: String?

The URL of online service. The URL that will be used when the service area task is loaded.

Inherited properties

Link copied to clipboard
open override var apiKey: ApiKey?

An API key is a unique key used to authorize access to specific services and resources in ArcGIS Online. It is also used to monitor access to those services.

Link copied to clipboard
open override val loadStatus: StateFlow<LoadStatus>

The load status.

Functions

Link copied to clipboard

Creates default parameters. Retrieves the default parameters as defined by the service.

Link copied to clipboard
suspend fun solveServiceArea(serviceAreaParameters: ServiceAreaParameters): Result<ServiceAreaResult>

Solve a service area passing in a parameters object. Executes the ServiceAreaParameters defined for this ServiceAreaTask and returns a ServiceAreaResult containing the results.

Inherited functions

Link copied to clipboard
open override fun cancelLoad()

Cancels loading metadata for the Loadable object.

Link copied to clipboard
open suspend override fun load(): Result<Unit>

Loads the metadata for the object.

Link copied to clipboard
open suspend override fun retryLoad(): Result<Unit>

Loads or retries loading metadata for the object.