ArcGIS Runtime SDK for iOS
100.15
|
Result returned by AGSClosestFacilityTask
.
Instances of this class represent the result of solveClosestFacilityWithParameters:completion: (AGSClosestFacilityTask)
. The result is a collection of computed routes between incidents and facilities, barriers used in the computation, and messages generated during the process.
Instance Methods | |
(nullable NSArray< NSNumber * > *) | - facilityCostsForAttributeName:facilityIndex: |
(nullable NSArray< NSNumber * > *) | - rankedFacilityIndexesForIncidentIndex: |
(nullable AGSClosestFacilityRoute *) | - routeForFacilityIndex:incidentIndex: |
Properties | |
NSString * | directionsLanguage |
NSArray< AGSFacility * > * | facilities |
NSArray< AGSIncident * > * | incidents |
NSArray< NSString * > * | messages |
NSArray< AGSPointBarrier * > * | pointBarriers |
NSArray< AGSPolygonBarrier * > * | polygonBarriers |
NSArray< AGSPolylineBarrier * > * | polylineBarriers |
- (nullable NSArray<NSNumber*>*) facilityCostsForAttributeName: | (NSString *) | attributeName | |
facilityIndex: | (NSInteger) | facilityIndex | |
Returns the cost for the specified facility attribute.
attributeName | name of the desired attribute. |
facilityIndex | index of the desired facility in the AGSClosestFacilityResult::facilities array. |
- (nullable NSArray<NSNumber*>*) rankedFacilityIndexesForIncidentIndex: | (NSInteger) | incidentIndex |
Returns an ordered list of facilities for a given incident. Facilities and Incidents are identified by indexes based on the facilities
and incidents
collections. The first element in the list is the closest facility, the second element is the next closest, etc. Multiple properties can effect the number of facilities returned for each incident.
incidentIndex | index of the desired incident in the AGSClosestFacilityResult::incidents array. |
- (nullable AGSClosestFacilityRoute*) routeForFacilityIndex: | (NSInteger) | facilityIndex | |
incidentIndex: | (NSInteger) | incidentIndex | |
Returns a route between an incident and a facility.
facilityIndex | index of the desired facility in the AGSClosestFacilityResult::facilities array. |
incidentIndex | index of the desired incident in the AGSClosestFacilityResult::incidents array. |
AGSClosestFacilityRoute
between specified facility and incident.
|
readnonatomiccopy |
The language used when computing directions. For example, en, fr, pt-BR, zh-Hans, etc. The list of languages supported is available in AGSClosestFacilityTaskInfo::supportedLanguages
.
AGSClosestFacilityParameters::directionsLanguage
to specify which language to use.
|
readnonatomiccopy |
|
readnonatomiccopy |
|
readnonatomiccopy |
Informational messages that were generated while computing routes.
|
readnonatomiccopy |
Point barriers used in the route computation. Only available if AGSClosestFacilityParameters::returnPointBarriers
was enabled.
- setPointBarriers: (AGSClosestFacilityParameters)
or - setPointBarriersWithFeatureTable:queryParameters: (AGSClosestFacilityParameters)
to specify the barriers to use.
|
readnonatomiccopy |
Polygon barriers used in the route computation. Only available if AGSClosestFacilityParameters::returnPolygonBarriers
was enabled.
- setPolygonBarriers: (AGSClosestFacilityParameters)
or - setPolygonBarriersWithFeatureTable:queryParameters: (AGSClosestFacilityParameters)
to specify the barriers to use.
|
readnonatomiccopy |
Polyline barriers used in the route computation. Only available if AGSClosestFacilityParameters::returnPolylineBarriers
was enabled.
- setPolylineBarriers: (AGSClosestFacilityParameters)
or - setPolylineBarriersWithFeatureTable:queryParameters: (AGSClosestFacilityParameters)
to specify the barriers to use.