POILocation
public struct POILocation : Equatable
Represents a Point of Interest Location (POILocation) with associated metadata.
A POILocation 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.-
Initializes a new Point of Interest Location (
POILocation) with the provided data.Declaration
Swift
public init( place: Place, poi: POI? = nil, onRouteDetourDetails: OnRouteDetourDetails? = nil )Parameters
placeThe
TomTomSDKCommon/Placeinformation of the point of interest.poiThe Point of Interest (
TomTomSDKCommon/POI) information.onRouteDetourDetailsDetour details for points of interest along the route.
-
The
TomTomSDKCommon/Placeinformation of the point of interest.Declaration
Swift
public let place: Place -
The Point of Interest (
TomTomSDKCommon/POI) information.Declaration
Swift
public let poi: POI? -
Detour details for points of interest along the route.
Declaration
Swift
public let onRouteDetourDetails: OnRouteDetourDetails? -
Implements a method to check whether two
POILocationobjects are the same location.Two
POILocationobjects are the same location if they have the samePOIandPlace. Dynamic data ofOnRouteDetourDetailsare excluded from comparison.Declaration
Swift
public static func == (lhs: POILocation, rhs: POILocation) -> BoolParameters
lhsA
POILocationto compare.rhsAnother
POILocationto compare.Return Value
True if both poi locations are equal.
TomTom SDK for iOS (0.53.1)
POILocation