SearchResultType
public enum SearchResultType : Codable, Hashable
Type of the search result
Address types can have multiple subtypes. For example, [.country] for Country result like Germany or [.address]
for a concrete address.
Sometimes server may respond with multiple address subtypes for the result. For example, Seoul would have [.region,
.place].
-
Represents address type.
Can have multiple subtypes. For example,
[.country]for Country result like Germany or[.address]for a concrete address. Sometimes server may respond with multiple address subtypes for the result. For example, Seoul would have[.region, .place].Declaration
Swift
case address(subtypes: [SearchAddressType]) -
Point of Interest – like restaurant, hotel or ATM
Declaration
Swift
case POI -
Access to
subtypesofaddresstype. Do not available for.POItype.Declaration
Swift
public var addressSubtypes: [SearchAddressType]? { get } -
Initializer for custom Decoder
Declaration
Swift
public init(from decoder: Decoder) throwsParameters
decoderDecoder class
-
Encode structure with your own Encoder
Declaration
Swift
public func encode(to encoder: Encoder) throwsParameters
encoderCustom encoder entity
SearchResultType Enumeration Reference