GooglePlacesSwift Framework Reference

PlaceIdentifier

enum PlaceIdentifier
extension PlaceIdentifier : Sendable, SendableMetatype

The place identifier.

  • The grounding content tokens associated with the place, or an empty set.

    Declaration

    Swift

    var contentTokens: Set<String> { get }
  • Declaration

    Swift

    case coordinate(CLLocationCoordinate2D)
  • The place ID if this identifier represents a place ID, or nil otherwise.

    Declaration

    Swift

    var placeID: String? { get }
  • The place ID of the place.

    Declaration

    Swift

    case placeID(String)
  • The place ID of the place with associated grounding content tokens.

    Declaration

    Swift

    case placeIDWithTokens(String, contentTokens: Set<String>)
  • The resource name if this identifier represents a resource name, or nil otherwise.

    Declaration

    Swift

    var resourceName: String? { get }
  • The resource name of the place.

    A resource name is a string formatted as places/PLACE_ID that uniquely identifies a specific location.

    Declaration

    Swift

    case resourceName(String)
  • The resource name of the place with associated grounding content tokens.

    Declaration

    Swift

    case resourceNameWithTokens(String, contentTokens: Set<String>)