OsmGpsMap.MapPoint

Fields

Name

Type

Access

Description

rlat

float

r/w

rlon

float

r/w

user_data

object

r/w

Methods

class

new_degrees (lat, lon)

class

new_degrees_with_user_data (lat, lon, user_data)

class

new_radians (rlat, rlon)

class

new_radians_with_user_data (rlat, rlon, user_data)

copy ()

free ()

get_degrees ()

get_radians ()

get_user_data ()

set_degrees (lat, lon)

set_radians (rlat, rlon)

set_user_data (user_data)

Details

class OsmGpsMap.MapPoint
classmethod new_degrees(lat, lon)
Parameters:
  • lat (float) – latitude in degrees

  • lon (float) – longtitude in degrees

Returns:

new point object

Return type:

OsmGpsMap.MapPoint

Create point with specified params

New in version 0.7.0.

classmethod new_degrees_with_user_data(lat, lon, user_data)
Parameters:
  • lat (float) – latitude in degrees

  • lon (float) – longtitude in degrees

  • user_data (object or None) – user data

Returns:

new point object

Return type:

OsmGpsMap.MapPoint

Create point with specified params

New in version 1.2.0.

classmethod new_radians(rlat, rlon)
Parameters:
  • rlat (float) – latitude in radians

  • rlon (float) – longtitude in radians

Returns:

new point object

Return type:

OsmGpsMap.MapPoint

Create point with specified params

New in version 0.7.0.

classmethod new_radians_with_user_data(rlat, rlon, user_data)
Parameters:
  • rlat (float) – latitude in radians

  • rlon (float) – longtitude in radians

  • user_data (object or None) – user data

Returns:

new point object

Return type:

OsmGpsMap.MapPoint

Create point with specified params

New in version 1.2.0.

copy()
Returns:

Copied point

Return type:

OsmGpsMap.MapPoint

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:

lat:

latitude in degrees

lon:

longitude in degrees

Return type:

(lat: float, lon: float)

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:

(rlat: float, rlon: float)

Returns the lagitude and longitude in radians.

New in version 0.7.0.

get_user_data()
Returns:

The OsmGpsMap.MapPoint user data

Return type:

object or None

Get user data stored in point

New in version 1.2.0.

set_degrees(lat, lon)
Parameters:
  • lat (float) – latitude in degrees

  • lon (float) – longitude in degrees

Sets the lagitude and longitude in degrees.

New in version 0.7.0.

set_radians(rlat, rlon)
Parameters:
  • rlat (float) – latitude in radians

  • rlon (float) – longitude in radians

Sets the lagitude and longitude in radians.

New in version 0.7.0.

set_user_data(user_data)
Parameters:

user_data (object or None) – user data

Store user data in point

New in version 1.2.0.