Summary

public struct Summary

Summary information about the search that was performed.

  • Creates a new SearchRequestSummary.

    Declaration

    Swift

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

    Parameters

    query

    The query this is a response to.

    queryTime

    The time the query took to execute.

    totalResults

    Number of total results available for given query.

    geoBias

    The coordinates used to bias the results.

  • 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>?
  • 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?