Package onep :: Package location :: Module location :: Class GeoLocation
[frames] | no frames]

Class GeoLocation



GeoLocation contains geographic (GPS) location information
for an object in agreement with RFC 3825.

A geographic location is uniquely specified as:
<ul>
 <li>Latitude plus resolution
 <li>Longitude plus resolution
 <li>Altitude plus resolution
</ul> 

Instance Methods
 
__init__(self, latitude, longitude, altitude=0, lat_resolution=0, long_resolution=0, alt_resolution=0, alt_type=AltType.LOCATION_ALT_TYPE_METERS)
x.__init__(...) initializes x; see help(type(x)) for signature
 
__eq__(self, obj)
 
__str__(self)
str(x)

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, latitude, longitude, altitude=0, lat_resolution=0, long_resolution=0, alt_resolution=0, alt_type=AltType.LOCATION_ALT_TYPE_METERS)
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • latitude - Latitude in degrees (North +, South -).
  • longitude - Longitude in degrees (East +, West -).
  • altitude - Altitude in meters or floors (Above sea level +, Below -).
  • lat_resolution - Latitude resolution in meters.
  • long_resolution - Longitude resolution in meters.
  • alt_resolution - Altitude resolution in meters or floors.
  • alt_type - Units used in altitude - meters or floors.
Overrides: object.__init__

__str__(self)
(Informal representation operator)

 

str(x)

Overrides: object.__str__
(inherited documentation)