PeliasResponse
class PeliasResponse : APIResponse
-
Produces an array of PeliasMapkitAnnotations based off the response from Pelias servers.
This is currently the only method for producing fully formed native objects. In the future there will be additional functions and data types for this class to produce additional / more detailed objects.
Declaration
Swift
public func parsedMapItems() -> [PeliasMapkitAnnotation]? -
Produces an array of PeliasMapkitAnnotations based off the response from Pelias servers.
This is currently the only method for producing fully formed native objects. In the future there will be additional functions and data types for this class to produce additional / more detailed objects.
Declaration
Swift
public func parsedMapItems(target: UIResponder?, action: Selector?) -> [PeliasMapkitAnnotation]?Parameters
targetAn optional target to invoke the selector on when the annotations are clicked.
actionAn optional selector to be invoked when the created annotations are clicked.
View on GitHub
PeliasResponse Extension Reference