Skip To Content ArcGIS for Developers Sign In Dashboard

Incident QML Type

A class that represents an incident. More...

Import Statement: import Esri.ArcGISRuntime 100.6
Since: Esri.ArcGISRuntime 100.1





Detailed Description

An Incident is a location that can serve as the starting point or end point of a closest facility analysis, for example, a fire or a traffic accident. Incidents are part of ClosestFacilityParameters which is used as an input to ClosestFacilityTask.solveClosestFacilityRoute.

This QML type supports the following default properties. A default property may be declared inside another declared object without being assigned explicitly to a property.

Property Documentation

curbApproach : Enums.CurbApproach

The curb approach for this Incident.

See also Enums.CurbApproach.

distanceToNetworkLocation : double

Returns the distance of this Incident to a network feature in meters (read-only).

Returns NaN if the facility has not been located.

geometry : Point

Returns the Point geometry of where this Incident is located (read-only).

impedanceCutoff : double

The impedance cutoff of this Incident.

For instance, while finding the closest hospitals from the site of an accident, a cutoff value of 15 minutes would mean that the closest facility task would search for the closest hospital within 15 minutes from the facility. If the closest hospital is 17 minutes away, no routes will be returned in the output routes. A cutoff value is especially useful when searching for multiple facilities or incidents. The units for impedance cutoff is based on the value of the TravelMode.impedanceAttributeName. For example, if TravelMode.impedanceAttributeName is TravelTime, then impedanceCutoff is specified in minutes.

incidentId : int

The ID of this Incident.

This QML property was introduced in Esri.ArcGISRuntime 100.6.

locationStatus : Enums.LocationStatus

Returns the LocationStatus of this Incident (read-only).

See also Enums.LocationStatus.

name : string

The name of this Incident.

networkLocation : NetworkLocation

The network location of this Incident.

targetFacilityCount : double

The target facility count of this Incident.

Specifies the number of facilities that need to be found for the incident. A negative value means that the target facility count property is not considered, but the default is used instead. The default value can be obtained from ClosestFacilityTaskInfo.defaultTargetFacilityCount.

Signal Documentation


Emitted when the curbApproach property of this Incident changes.


Emitted when the distanceToNetworkLocation property of this Incident changes.


Emitted when the geometry property of this Incident changes.


Emitted when the impedanceCutoff property of this Incident changes.


Emitted when the incidentId property of this Incident changes.

This QML signal was introduced in Esri.ArcGISRuntime 100.6.


Emitted when the locationStatus property of this Incident changes.


Emitted when the name property of this Incident changes.


Emitted when the networkLocation property of this Incident changes.


Emitted when the targetFacilityCount property of this Incident changes.

Method Documentation

double addedCost(string attributeName)

Returns the added cost of a given attributeName.

void setAddedCost(string attributeName, double costValue)

Sets the costValue for a given attributeName.

Feedback on this topic?