SearchRequestSummary

public struct SearchRequestSummary

Summary information about the search that was performed.

Important

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

Lifecycle

  • Creates a new SearchRequestSummary

    Declaration

    Swift

    public init(
        query: String = "",
        queryTime: Measurement<UnitDuration>? = nil,
        offset: Int = 0,
        totalResults: Int = 0,
        geoBias: CLLocationCoordinate2D? = nil
    )

    Parameters

    query

    The query this is a response to.

    queryTime

    The time the query took to execute.

    offset

    Start index of returned results for query.

    totalResults

    Number of total results available for given query.

    geoBias

    The position used to bias the results.

Public

  • The query this is a response to.

    Declaration

    Swift

    public let query: String
  • The time the query took to execute.

    Declaration

    Swift

    public let queryTime: Measurement<UnitDuration>?
  • Start index of returned results for query.

    Declaration

    Swift

    public let offset: Int
  • Number of total results available for given query.

    Declaration

    Swift

    public let totalResults: Int
  • The position used to bias the results.

    Declaration

    Swift

    public let geoBias: CLLocationCoordinate2D?