Package lastfm :: Module geo :: Class Location

[hide private]
[frames] | no frames]

# Class Location

source code

                    object --+
                             |
               base.LastfmBase --+
                                 |
                    object --+   |
                             |   |
    mixins.cacheable.Cacheable --+
                                 |
                                Location

A class representing a location of an event

Instance Methods | [hide private]

init(self, api, city=None, country=None, street=None, postal_code=None, latitude=None, longitude=None, timezone=None, **kwargs) | source code

get_events(self, distance=None) | source code

__hash__(self) hash(x) | source code

__eq__(self, other) | source code

__lt__(self, other) | source code

__repr__(self) repr(x) | source code

Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__init__`, `__reduce__`, `__reduce_ex__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__`
Inherited from base.LastfmBase

__ge__(self, other) | source code

__gt__(self, other) | source code

__le__(self, other) | source code

__ne__(self, other) | source code

Static Methods | [hide private]

_hash_func(*args, **kwds) | source code

Inherited from mixins.cacheable.Cacheable

a new object with type S, a subtype of T

__new__(cls, *args, **kwds) | source code

register(ob, key) | source code

Class Variables | [hide private]

| XMLNS = ``'``http://www.w3.org/2003/01/geo/wgs84_pos#``'``
Inherited from mixins.cacheable.Cacheable
| _lock = `Lock()`
| registry = ``{``}``

Properties | [hide private]

| city city in which the location is situated
| country country in which the location is situated
| street street in which the location is situated
| postal_code postal code of the location
| latitude latitude of the location
| longitude longitude of the location
| timezone timezone in which the location is situated
| top_tracks top tracks of the location
| top_track top track of the location
| events events taking place at/around the location
Inherited from `object`: `__class__`

Method Details | [hide private]

### __hash__(self)
(Hashing function)

source code

hash(x)

Overrides: object.__hash__
  (inherited documentation)

### __repr__(self)
(Representation operator)

source code

repr(x)

Overrides: object.__repr__
  (inherited documentation)

Property Details | [hide private]

### city

city in which the location is situated

Get Method:
  unreachable.city(self) - city in which the location is situated

### country

country in which the location is situated

Get Method:
  unreachable.country(self) - country in which the location is situated

### street

street in which the location is situated

Get Method:
  unreachable.street(self) - street in which the location is situated

### postal_code

postal code of the location

Get Method:
  unreachable.postal_code(self) - postal code of the location

### latitude

latitude of the location

Get Method:
  unreachable.latitude(self) - latitude of the location

### longitude

longitude of the location

Get Method:
  unreachable.longitude(self) - longitude of the location

### timezone

timezone in which the location is situated

Get Method:
  unreachable.timezone(self) - timezone in which the location is situated

### top_tracks

top tracks of the location

Get Method:
  unreachable.wrapper(ob)

### top_track

top track of the location

Get Method:
  unreachable.wrapper(ob)

### events

events taking place at/around the location

Get Method:
  unreachable.wrapper(ob)