A class representing a Latitude/Longitude pair.
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.
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:
- code/googleappengine-read-only/python/google/appengine/api/search/stub/geo_util.py