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

Public Member Functions

def __init__
 
def latitude
 
def longitude
 
def __sub__
 

Detailed Description

A class representing a Latitude/Longitude pair.

Constructor & Destructor Documentation

def google.appengine.api.search.stub.geo_util.LatLng.__init__ (   self,
  latitude,
  longitude 
)
Initializer.

Args:
  latitude: The latitude in degrees.
  longitude: The longitude in degrees.

Raises:
  TypeError: If a non-numeric latitude or longitude is passed.

Member Function Documentation

def google.appengine.api.search.stub.geo_util.LatLng.__sub__ (   self,
  other 
)
Subtraction.

Returns the great circle distance between two LatLng objects as computed
by the Haversine formula.
def google.appengine.api.search.stub.geo_util.LatLng.latitude (   self)
Returns the latitude in degrees.
def google.appengine.api.search.stub.geo_util.LatLng.longitude (   self)
Returns the longitude in degrees.

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