SearchVisualization

public protocol SearchVisualization

The SearchVisualization protocol can be used to display and clear POIs from SearchResults using default and specialized icons for EVs, gas stations, parking facilities, and restaurants. An instance can be created using SearchVisualizationFactory.createSearchVisualization(map:).

Important

This is a Public Preview API. It may be changed or removed at any time.
  • Creates and shows POIs on the map based on a list of search results. To clear the POIs use clearAllPOIs().

    Declaration

    Swift

    func displayPOIs(from searchResults: [SearchResult])

    Parameters

    searchResults

    List of SearchResults from which POIs are shown. If SearchResult.poi is empty, SearchResult is ignored.

  • Hides and destroys all POIs on the map that have been displayed with displayPOIs(from:)

    Declaration

    Swift

    func clearAllPOIs()