OfflineStructuredSearch

@available(*, deprecated, message: "    This API is deprecated and will be removed with the next major release.\n    Please use TomTomSDKStructuredSearchOffline.OfflineStructuredSearchFactory instead.")
public final class OfflineStructuredSearch : StructuredSearch

Structured Search implementation that uses offline map data. For more information, see StructuredSearch.

  • Start a new search session to find the full address hierarchically with preferred locale. The locale is used to find the best representation of strings in StructuredSearchCandidate, and can be changed later when operating with StructuredSearchSession.

    Throws

    An error if NDSStore is invalid.

    Declaration

    Swift

    public func createSearchSession(locale: Locale) throws -> StructuredSearchSession

    Parameters

    locale

    The preferred Locale.

    Return Value

    A StructuredSearchSession object that could be used to perform structured search.

  • Creates an OfflineStructuredSearch instance.

    Throws

    An error if NDSStore is invalid.

    Important

    This is a Public Preview API. It may be changed or removed at any time.

    Declaration

    Swift

    public convenience init(store: NDSStore) throws

    Parameters

    store

    The NDSStore object that contains the map data.