SearchConfiguration
public struct SearchConfiguration
These configuration parameters are used to execute a Point of Interest (TomTomSDKPOIVisualization/POI) search.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Initializes a new instance of
SearchConfigurationwith the specified parameters.Declaration
Swift
public init( categories: Set<POICategoryID> = Defaults.categories, detourTime: Measurement<UnitDuration> = Defaults.detourTime, numberOfResults: UInt = Defaults.numberOfResults, minPower: Measurement<UnitPower>? = nil, maxPower: Measurement<UnitPower>? = nil, engineType: EngineType? = nil )Parameters
categoriesA set of
TomTomSDKPOIVisualization/POIcategories used for the search. Default categories include places commonly researched, like restaurants, parking areas, and hotels.detourTimeThe maximum allowed detour time for a
TomTomSDKPOIVisualization/POI. Specifies how much extra time a user is willing to spend to reach aTomTomSDKPOIVisualization/POIfrom their route. Defaults to 15 minutes.numberOfResultsThe maximum number of
TomTomSDKPOIVisualization/POIresults to retrieve. Limits the number of results returned from aTomTomSDKPOIVisualization/POIsearch. Defaults to 20.minPowerThe minimum power requirement for a charging station. It is useful for filtering out charging stations below a certain power level. If not provided, no minimum power filter is applied.
maxPowerThe maximum power limit for a charging station. Useful for filtering out charging stations that exceed a certain power. If not provided, no maximum power filter is applied.
engineTypeSpecifies the engine type for vehicles to filter
TomTomSDKPOIVisualization/POIs based on vehicle type. If not provided, no engine-type filter is applied. Ifelectric(connectors:)is selected, it restricts the results to Points Of Interest of type Electric Vehicle Station. supporting the specifiedconnectors. Ifcombustion(fuelTypes:)is selected, it restricts the results to Points Of Interest with the specifiedfuelTypes.
-
The set of categories used for the
TomTomSDKPOIVisualization/POIsearch.These categories determine the types of places in which you are interested, such as restaurants, hotels, or parking areas.
Declaration
Swift
public let categories: Set<POICategoryID> -
The maximum allowed detour time when searching for a
TomTomSDKPOIVisualization/POI.This property specifies how much extra time a user is willing to spend to reach a
TomTomSDKPOIVisualization/POI. from their route.Declaration
Swift
public let detourTime: Measurement<UnitDuration> -
The maximum number of
TomTomSDKPOIVisualization/POIresults to retrieve.This property limits the number of results returned from a
TomTomSDKPOIVisualization/POIsearch.Declaration
Swift
public let numberOfResults: UInt -
The minimum power requirement for a charging station.
Use this property to filter out charging stations that don’t provide the required minimum power.
Declaration
Swift
internal(set) public var minPower: Measurement<UnitPower>? { get } -
The maximum power limit for a charging station.
Use this property to filter out charging stations that exceed the maximum power limit.
Declaration
Swift
internal(set) public var maxPower: Measurement<UnitPower>? { get } -
Specifies the engine type for vehicles.
This property helps in filtering
TomTomSDKPOIVisualization/POIs based on vehicle engine type, whether it’s electric, combustion, or hybrid.Declaration
Swift
internal(set) public var engineType: EngineType? { get }
-
Contains default values for various
TomTomSDKPOIVisualization/POIsearch configuration parameters.See moreImportant
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public enum Defaults
-
An enumeration representing different types of vehicle engines and their associated criteria.
Use this enum to specify engine-related search criteria in the configuration. Depending on the engine type, you can provide further details like the types of connectors for electric vehicles or fuel types for combustion vehicles.
See moreImportant
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public enum EngineType
TomTom SDK for iOS (0.40.0)
SearchConfiguration