Place - daneden/Twift GitHub Wiki

Place

The place tagged in a Tweet is not a primary object on any endpoint, but can be found and expanded in the Tweet resource.

public struct Place: Codable, Identifiable 

Inheritance

Codable, Fielded, Identifiable

Nested Type Aliases

ID

public typealias ID = String

Field

public typealias Field = PartialKeyPath<Self>

Properties

id

The unique identifier of the expanded place, if this is a point of interest tagged in the Tweet.

public let id: ID

fullName

A longer-form detailed place name.

public let fullName: String

containedWithin

Returns the identifiers of known places that contain the referenced place.

public let containedWithin: [Place.ID]?

country

The full-length name of the country this place belongs to.

public let country: String?

countryCode

The ISO Alpha-2 country code this place belongs to.

public let countryCode: String?

geo

Contains place details in GeoJSON format.

public let geo: GeoJSON?

name

The short name of this place.

public let name: String?

placeType

Specified the particular type of information represented by this place information, such as a city name, or a point of interest.

public let placeType: String?
⚠️ **GitHub.com Fallback** ⚠️