Skip to content

GeoCoordinate

Qt Base Class: QGeoCoordinate

Signature: QGeoCoordinate(self) -> None QGeoCoordinate(self, latitude: float, longitude: float) -> None QGeoCoordinate(self, latitude: float, longitude: float, altitude: float) -> None QGeoCoordinate(self, other: PySide6.QtPositioning.QGeoCoordinate) -> None

Base classes

Name Children Inherits
QGeoCoordinate
PySide6.QtPositioning
QGeoCoordinate(self) -> None

⋔ Inheritance diagram

graph TD
  1473573425840["positioning.GeoCoordinate"]
  1473573340928["QtPositioning.QGeoCoordinate"]
  1473291690208["Shiboken.Object"]
  140713234304496["builtins.object"]
  1473573340928 --> 1473573425840
  1473291690208 --> 1473573340928
  140713234304496 --> 1473291690208

🛈 DocStrings

Bases: QGeoCoordinate

Source code in prettyqt\positioning\geocoordinate.py
class GeoCoordinate(QtPositioning.QGeoCoordinate):
    def __str__(self):
        return self.toString()

    def __format__(self, format_spec: CoordinateFormatStr):
        return self.toString(COORDINATE_FORMAT[format_spec])

    def __repr__(self):
        return get_repr(self, self.latitude(), self.longitude())

    def __bool__(self):
        return self.isValid()

    def get_type(self) -> str:
        return COORDINATE_TYPE.inverse[self.type()]