App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | Static Public Attributes | List of all members
google.appengine.api.datastore_types.GeoPt Class Reference
Inheritance diagram for google.appengine.api.datastore_types.GeoPt:

Public Member Functions

def __init__
 
def __cmp__
 
def __hash__
 
def __repr__
 
def __unicode__
 
def ToXml
 

Static Public Attributes

 lat = None
 
 lon = None
 

Detailed Description

A geographical point, specified by floating-point latitude and longitude
coordinates. Often used to integrate with mapping sites like Google Maps.
May also be used as ICBM coordinates.

This is the georss:point element. In XML output, the coordinates are
provided as the lat and lon attributes. See: http://georss.org/

Serializes to '<lat>,<lon>'. Raises BadValueError if it's passed an invalid
serialized string, or if lat and lon are not valid floating points in the
ranges [-90, 90] and [-180, 180], respectively.

Member Function Documentation

def google.appengine.api.datastore_types.GeoPt.__hash__ (   self)
Returns an integer hash of this point.

Implements Python's hash protocol so that GeoPts may be used in sets and
as dictionary keys.

Returns:
  int
def google.appengine.api.datastore_types.GeoPt.__repr__ (   self)
Returns an eval()able string representation of this GeoPt.

The returned string is of the form 'datastore_types.GeoPt([lat], [lon])'.

Returns:
  string

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