SearchSuggestType

public enum SearchSuggestType : Codable, Hashable

Suggestion type

  • 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])
  • POI

    Suggestion represents point-of-interest.

    Declaration

    Swift

    case POI
  • Suggestion represents further category search. For example, you may get “bar” category suggestion for “bar” query to look for a POI with “bar” in the categories field.

    Declaration

    Swift

    case category
  • Suggestion represents the further query search. It might be used for query corrections.

    Declaration

    Swift

    case query
  • Access to subtypes of address 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