GooglePlacesSwift Framework Reference

  • IsPlaceOpenRequest determines if a place is currently open using either a Place object or a placeID.

  • Requests can specify a specific Date for the query; otherwise, the current date and time are used.

  • The request can be initialized with either a Place object or a placeID string, along with an optional Date.

  • The struct provides access to the place, placeID, and date associated with the request.

IsPlaceOpenRequest

struct IsPlaceOpenRequest
extension IsPlaceOpenRequest : Sendable

Represents an IsPlaceOpenRequest definition to be sent via PlacesClient.

  • The Date to be used for the request. If no date is provided, the current date and time is used.

    Declaration

    Swift

    var date: Date? { get }
  • Initializes the request with a Place and an optional Date.

    Declaration

    Swift

    init(place: Place, date: Date? = nil)

    Parameters

    place

    The Place to be used for the request.

    date

    The date to to be used for the request. If no date is provided, the current date and time is used.

  • Initializes the request with a placeID and an optional Date.

    Declaration

    Swift

    init(placeID: String, date: Date? = nil)

    Parameters

    placeID

    The place ID to be used for the request.

    date

    The date to be used for the request. If no date is provided, the current date and time is used.

  • The Place to be used for the request.

    Declaration

    Swift

    var place: Place? { get }
  • The place ID to be used for the request.

    Declaration

    Swift

    var placeID: String? { get }