ClosestFacilityResult QML Type
|Import Statement:||import Esri.ArcGISRuntime 100.14|
- directionsLanguage : string
- facilities : list<Facility>
- incidents : list<Incident>
- messages : list<string>
- pointBarriers : list<PointBarrier>
- polygonBarriers : list<PolygonBarrier>
- polylineBarriers : list<PolylineBarrier>
- list<double> facilityCosts(string attributeName, int facilityIndex)
- list<int> rankedFacilityIndexes(int incidentIndex)
- ClosestFacilityRoute route(int facilityIndex, int incidentIndex)
Note: You cannot declare or create a component of this type in QML code.
The closest facility result contains all necessary output from a successfully solved closest facility task. A single route can be obtained by providing facility and incident indexes. The result also contains collections of barriers, messages, facilities, and incidents.
facilities : list<Facility>
Returns a list of the facilities used in the ClosestFacilityTask (read-only).
incidents : list<Incident>
Returns a list of the incidents used in the ClosestFacilityTask (read-only).
Returns a list of messages about the ClosestFacilityResult (read-only).
pointBarriers : list<PointBarrier>
polygonBarriers : list<PolygonBarrier>
polylineBarriers : list<PolylineBarrier>
Returns total cost values for given attributeName and facilityIndex (read-only).
Returns a list of facility indexes ordered by rank level for a given incidentIndex (read-only).
- incidentIndex - The index of facility.
Returns facility indexes for a given incident where the index is a rank level and the value is a facility index. The first element in the list is the index of the closest facility, the second element is the next closest, etc. Multiple properties can effect the number of facilities returned for each incident:
ClosestFacilityRoute route(int facilityIndex, int incidentIndex)
Returns a route between the specified facilityIndex and incidentIndex (read-only).