TomTomSDKPOIVisualization
-
Represents a Point of Interest (
POI
) with associated metadata.A
POI
encapsulates the data required to plot a point on a map, including its coordinates and additional information such as its category and potential detour metrics.Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public struct POI : Equatable
-
A protocol that provides methods to visualize Points of Interest (
POI
s) on a map interface using theTomTomMap
instance. Instances ofPOIVisualization
are created usingcreate(map:)
You should call methods on these instances from the main thread only, otherwise an exception can occur. To use aPOIVisualization
instance, first provide a list ofPOI
with thedisplay(pois:)
method. You can then calldisplay(pois:)
orclear()
to remove thePOI
s that have been added to the map byPOIVisualization
.Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public protocol POIVisualization
-
Responsible for creating instances of objects conforming to the
POIVisualization
protocol.Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public enum POIVisualizationFactory
-
Declaration
Swift
extension POIVisualizer: MapInteractionObserver