SearchVisualization
public protocol SearchVisualization
Entry point for all methods related to the search visualization.
Instances of SearchVisualization are created using SearchVisualizationFactory/create(search:map:).
You should call methods on these instances from the main thread only, otherwise an exception can occur.
To use a SearchVisualization instance, first provide a search results array with the display(searchResults:) method.
You can then call clear() to remove all the primitives that have been added to the map.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Displays the search results returned from the Search API.
Declaration
Swift
func display(searchResults: [SearchResult])Parameters
searchResultsThe list of search results to display.
-
Removes the search results from the map.
Declaration
Swift
func remove(searchResults: [SearchResult])Parameters
searchResultsThe list of search results to remove.
-
Clears all
POILocationinstances on the map that were displayed withdisplayPOIsAlongRoute(geometry:)Declaration
Swift
func clear()
TomTom SDK for iOS (0.53.1)
SearchVisualization