PyMetOffice  0.4
Pythonic access to UK Met Office DataPoint API
Public Member Functions | Private Attributes | List of all members
pymetoffice.places.Place Class Reference

A convenient wrapper round location information obtained from geocoding sites. More...

Inheritance diagram for pymetoffice.places.Place:

Public Member Functions

def __init__
 Constructor:
 
def __lt__
 Enable sorting of lists of places.
 
def __repr__
 Printing a representation can be useful for debugging.
 
def __str__
 
def getLatLon
 A Utility method to return data suitable for requesting forecasts.
 

Private Attributes

 _info
 

Detailed Description

A convenient wrapper round location information obtained from geocoding sites.

Definition at line 44 of file places.py.

Constructor & Destructor Documentation

def pymetoffice.places.Place.__init__ (   self,
  info 
)

Constructor:

Parameters
infoA dictionary containing name: original search text, county: UK county, lat: latitude, lon: longitude.

Definition at line 49 of file places.py.

Member Function Documentation

def pymetoffice.places.Place.__lt__ (   self,
  other 
)

Enable sorting of lists of places.

Definition at line 54 of file places.py.

def pymetoffice.places.Place.__repr__ (   self)

Printing a representation can be useful for debugging.

Definition at line 58 of file places.py.

def pymetoffice.places.Place.getLatLon (   self)

A Utility method to return data suitable for requesting forecasts.

Definition at line 69 of file places.py.


The documentation for this class was generated from the following file: