File: //home/arjun/projects/env/lib64/python3.10/site-packages/tweepy/__pycache__/place.cpython-310.pyc
o
+we� � @ s. d dl mZmZ g d�ZG dd� dee�ZdS )� )�DataMapping�
HashableID)�contained_within�country�country_code� full_name�geo�id�name�
place_typec @ s, e Zd ZdZdZdd� Zdd� Zdd� Zd S )
�Placea� 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.
.. versionadded:: 4.0
Attributes
----------
data : dict
The JSON data representing the place.
full_name : str
A longer-form detailed place name.
id : str
The unique identifier of the expanded place, if this is a point of
interest tagged in the Tweet.
contained_within : list
Returns the identifiers of known places that contain the referenced
place.
country : str | None
The full-length name of the country this place belongs to.
country_code : str | None
The ISO Alpha-2 country code this place belongs to.
geo : dict | None
Contains place details in GeoJSON format.
name : str | None
The short name of this place.
place_type : str | None
Specified the particular type of information represented by this place
information, such as a city name, or a point of interest.
References
----------
https://developer.twitter.com/en/docs/twitter-api/data-dictionary/object-model/place
) �datar r r r r r r
r c C sh || _ |d | _|d | _|�dg �| _|�d�| _|�d�| _|�d�| _|�d�| _|�d�| _ d S ) Nr r r r r r r
r )
r
r r �getr r r r r
r )�selfr
� r �E/home/arjun/projects/env/lib/python3.10/site-packages/tweepy/place.py�__init__B s
zPlace.__init__c C s d| j � d| j� d�S )Nz
<Place id=z full_name=�>)r r �r r r r �__repr__N s zPlace.__repr__c C s | j S )N)r r r r r �__str__Q s z
Place.__str__N)�__name__�
__module__�__qualname__�__doc__� __slots__r r r r r r r r s 'r N)�
tweepy.mixinsr r �PLACE_FIELDSr r r r r �<module> s