SearchResult
public struct SearchResult
SearchResult Object containing grouped information about places or points of interest.
The bounding box of the result.
Declaration
Swift
public let boundingBox: BoundingBox?
Describes the details about the detour from the route to the point of interest along the route.
Declaration
Swift
public typealias Detour = TomTomSDKSearch.Detour
The detailed information about detour which should be taken to reach the search result position.
Declaration
Swift
public let detour: Detour?
The distance from the route provided in the request.
Declaration
Swift
public let distance: Measurement<UnitLength>?
Creates a new SearchResult
instance.
Declaration
Swift
public init(
type: SearchResultType,
searchResultID: SearchResultID,
distance: Measurement<UnitLength>?,
poi: POI?,
place: Place,
boundingBox: BoundingBox?,
detour: Detour?
)
Parameters
type
|
The type of result. |
searchResultID
|
The ID of the result. |
distance
|
The distance from the route provided in the request. |
poi
|
Information about the POI. |
place
|
Detailed address and the geographical position of the POI. |
boundingBox
|
The bounding box of the result. |
detour
|
The detailed information about detour which should be taken to reach the search result position. |
Detailed address and the geographical position of the POI.
Declaration
Swift
public let place: Place
Information about the POI.
Declaration
Swift
public let poi: POI?
The ID of the result.
Declaration
Swift
public let searchResultID: SearchResultID
The type of a search result.
See moreDeclaration
Swift
public enum SearchResult.`Type` : Hashable
The type of result.
Declaration
Swift
public let type: SearchResultType