<AGSLocatorDelegate> Protocol Reference


Description

A protocol which must be adopted by any class wishing to be notified when AGSLocator completes successfully or encounters an error. An instance of the class must then be set as the delegate of AGSLocator.

Defined in:
AGSLocator.h ( ArcGIS library)
Since:
1.0

List of all members.

Public Member Functions

(void) - locator:operation:didFailAddressForLocation:
(void) - locator:operation:didFailLocationsForAddress:
(void) - locator:operation:didFindAddressForLocation:
(void) - locator:operation:didFindLocationsForAddress:

Member Function Documentation

- (void) locator: (AGSLocator *)  locator
operation: (NSOperation *)  op
didFailAddressForLocation: (NSError *)  error 
[optional]

Tells the delegate that AGSLocator encountered an error while finding an address candidate.

Parameters:
locator The locator called to find address candidates.
op NSOperation that performed the locate task.
error Information about the error returned by the service.
Since:
1.0
- (void) locator: (AGSLocator *)  locator
operation: (NSOperation *)  op
didFailLocationsForAddress: (NSError *)  error 
[optional]

Tells the delegate that AGSLocator encountered an error while finding matching locations.

Parameters:
locator The locator called to find locations.
op NSOperation that performed the locate task.
error Information about the error returned by the service.
Since:
1.0
- (void) locator: (AGSLocator *)  locator
operation: (NSOperation *)  op
didFindAddressForLocation: (AGSAddressCandidate *)  candidate 
[optional]

Tells the delegate that AGSLocator completed finding an address candidate with the provided result.

Parameters:
locator The locator called to find address candidate.
op NSOperation that performed the locate task.
candidate The address candidate for specified location.
Since:
1.0
- (void) locator: (AGSLocator *)  locator
operation: (NSOperation *)  op
didFindLocationsForAddress: (NSArray *)  candidates 
[optional]

Tells the delegate that AGSLocator completed finding matching locations with the provided results.

Parameters:
locator The locator called to find locations.
op NSOperation that performed the locate task.
candidates Array of AGSAddressCandidate objects.
Since:
1.0