ClosestFacilityResult class final

A class that contains the output results from a ClosestFacilityTask.

The closest facility result contains all necessary output from a successfully- completed ClosestFacilityTask.solveClosestFacility. This includes collection of routes, barriers and messages.

Implemented types

Properties

directionsLanguage String
Directions language.
no setter
facilities List<Facility>
Array of the facilities used to calculate the closest facility.
no setter
hashCode int
The hash code for this object.
no setterinherited
incidents List<Incident>
Array of the incidents from which to calculate the closest facility.
no setter
messages List<String>
Messages.
no setter
pointBarriers List<PointBarrier>
Array of the point barriers.
no setter
polygonBarriers List<PolygonBarrier>
Array of the polygon barriers.
no setter
polylineBarriers List<PolylineBarrier>
Array of the polyline barriers.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getFacilityCosts({required String attributeName, required int facilityIndex}) List<double>
Gets facility costs.
getRankedFacilityIndexes({required int incidentIndex}) List<int>
Gets an ordered list of facility indexes for a given incident index.
getRoute({required int facilityIndex, required int incidentIndex}) ClosestFacilityRoute?
Gets route.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited