OsmGpsMap.MapPoint¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
rlat |
r/w |
||
rlon |
r/w |
||
user_data |
r/w |
Methods¶
class |
|
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class OsmGpsMap.MapPoint¶
- classmethod new_degrees(lat, lon)¶
- Parameters:
- Returns:
new point object
- Return type:
Create point with specified params
New in version 0.7.0.
- classmethod new_degrees_with_user_data(lat, lon, user_data)¶
- Parameters:
- Returns:
new point object
- Return type:
Create point with specified params
New in version 1.2.0.
- classmethod new_radians(rlat, rlon)¶
- Parameters:
- Returns:
new point object
- Return type:
Create point with specified params
New in version 0.7.0.
- classmethod new_radians_with_user_data(rlat, rlon, user_data)¶
- Parameters:
- Returns:
new point object
- Return type:
Create point with specified params
New in version 1.2.0.
- copy()¶
- Returns:
Copied point
- Return type:
Create a copy of a point
New in version 0.7.2.
- free()¶
Free point object
New in version 0.7.2.
- get_degrees()¶
-
Returns the lagitude and longitude in degrees.
New in version 0.7.0.
- get_radians()¶
- Returns:
- rlat:
latitude in radians
- rlon:
longitude in radians
- Return type:
Returns the lagitude and longitude in radians.
New in version 0.7.0.
- get_user_data()¶
- Returns:
The
OsmGpsMap.MapPoint
user data- Return type:
Get user data stored in point
New in version 1.2.0.
- set_degrees(lat, lon)¶
-
Sets the lagitude and longitude in degrees.
New in version 0.7.0.
- set_radians(rlat, rlon)¶
-
Sets the lagitude and longitude in radians.
New in version 0.7.0.