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
subtypes
ofaddress
type. Do not available for.POI
type.Declaration
Swift
public var addressSubtypes: [SearchAddressType]? { get }
-
Initializer for custom Decoder
Declaration
Swift
public init(from decoder: Decoder) throws
Parameters
decoder
Decoder class
-
Encode structure with your own Encoder
Declaration
Swift
public func encode(to encoder: Encoder) throws
Parameters
encoder
Custom encoder entity