Protocols

The following protocols are available globally.

  • Entry point for all methods related to the search visualization. Instances of SearchVisualization are created using 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 route geometry and a SearchConfiguration with the displayPOIsAlongRoute(geometry:configuration:completion:) method. You can then call clear() to remove all the primitives that have been added to the map. Additionally, you can add or remove tap observers for the TomTomSDKPOIVisualization/POIs using the addTapObserver(_:) and removeTapObserver(_:) methods, respectively.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public protocol SearchVisualization