LatLng Class Reference

Represents a world position in LatLng format. More...

Functions

def get_latitude (self, bool in_radian=True)
 Get the latitude coordinate. More...
 
def get_longitude (self, in_radian=True)
 Get the longitude coordinate. More...
 
def get_altitude (self)
 Get the altitude coordinate. More...
 
def get_coordinates (self, in_radian=True)
 Get the coordinates in radians (default) or in degrees. More...
 
def set_coordinates (self, double latitude, double longitude, double altitude, in_radian=True)
 Set the coordinates in radians (default) or in degrees. More...
 

Detailed Description

Represents a world position in LatLng format.

Functions

◆ get_latitude()

def get_latitude (   self,
bool   in_radian = True 
)

Get the latitude coordinate.

Parameters
in_radianIs the output should be in radian or degree.
Returns
Latitude in radian or in degree depending in_radian parameter.

◆ get_longitude()

def get_longitude (   self,
  in_radian = True 
)

Get the longitude coordinate.

Parameters
in_radianIs the output should be in radian or degree.
Returns
Longitude in radian or in degree depending in_radian parameter.

◆ get_altitude()

def get_altitude (   self)

Get the altitude coordinate.

Returns
Altitude coordinate in meters.

◆ get_coordinates()

def get_coordinates (   self,
  in_radian = True 
)

Get the coordinates in radians (default) or in degrees.

Parameters
latitudeLatitude coordinate.
longitudeLongitude coordinate.
altitudeAltitude coordinate.
in_radianShould the output be expressed in radians or degrees.

◆ set_coordinates()

def set_coordinates (   self,
double  latitude,
double  longitude,
double  altitude,
  in_radian = True 
)

Set the coordinates in radians (default) or in degrees.

Parameters
latitudeLatitude coordinate.
longitudeLongitude coordinate.
altitudeAltitude coordinate. @param in_radian: Is input are in radians or in degrees.