Kosmorrolib Documentation

Position

An object representing a position on Earth

Synopsis

class Position:
    latitude: float
    longitude: float

    def __init__(latitude: float, longitude: float) -> void

Properties

  • latitude: the latitude of the position
  • longitude: the longitude of the position

Methods

__init__(latitude: float, longitude: float) -> void

Constructs an object.

Arguments:
  • latitude
  • longitude

serialize()

Returns the object as a plain simple Python dictionnary.

See also

Help us to improve this page, contribute to the documentation!