require(["esri/rest/serviceArea"], function(serviceArea) { /* code goes here */ });
Object: esri/rest/serviceArea
Since: ArcGIS API for JavaScript 4.19

ServiceAreaTask helps you find service areas around any location on a network. A network service area is a region that encompasses all accessible streets (streets that are within a specified impedance). For instance, the 5-minute service area for a point includes all the streets that can be reached within five minutes from that point.

ServiceAreaTask, and other service area related classes, requires a service area layer. A service area layer is a layer of type esriNAServerServiceAreaLayer.

Method Overview

Name Return Type Summary Object

Determines the service area based on a set of parameters.

more details
more detailsserviceArea

Method Details

solve(url, params, requestOptions){Promise<ServiceAreaSolveResult>}

Determines the service area based on a set of parameters.

url String

URL to the ArcGIS Server REST resource that represents a network analysis service.

The parameters needed to define the service area.

requestOptions Object

Additional options to be used for the data request (will override requestOptions defined during construction).

Type Description
Promise<ServiceAreaSolveResult> When resolved, returns an instance of ServiceAreaSolveResult.