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

    target

    An optional target to invoke the selector on when the annotations are clicked.

    action

    An optional selector to be invoked when the created annotations are clicked.