Place

data class Place(fullName: String?, id: String?)

The place tagged in a Tweet is not a primary object on any endpoint, but can be found and expanded in the Tweet resource. The object is available for expansion with ?expansions=geo.place_id to get the condensed object with only default fields. Use the expansion with the field parameter: place.fields when requesting additional fields to complete the object.

Constructors

Link copied to clipboard
fun Place(fullName: String? = null, id: String? = null)

Types

Link copied to clipboard
class Geo

Properties

Link copied to clipboard
@SerializedName(value = "contained_within")
var containedWithin: ArrayList<String>? = null

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

Link copied to clipboard
@SerializedName(value = "country")
var country: String? = null

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

Link copied to clipboard
@SerializedName(value = "country_code")
var countryCode: String? = null

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

Link copied to clipboard
@SerializedName(value = "full_name")
var fullName: String? = null

A longer-form detailed place name.

Link copied to clipboard
@SerializedName(value = "geo")
var geo: Place.Geo? = null

Contains place details in GeoJSON format.

Link copied to clipboard
@SerializedName(value = "id")
var id: String? = null

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

Link copied to clipboard
@SerializedName(value = "name")
var name: String? = null

The short name of this place.

Link copied to clipboard
@SerializedName(value = "place_type")
var placeType: String? = null

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