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