Skip to content

GeoLocation

Base classes

Name Children Inherits
QGeoLocation
PySide6.QtPositioning
QGeoLocation(self, /) -> None

⋔ Inheritance diagram

graph TD
  3916726322["positioning.GeoLocation"]
  3198932430["QtPositioning.QGeoLocation"]
  37984305["Shiboken.Object"]
  2751680898["builtins.object"]
  3198932430 --> 3916726322
  37984305 --> 3198932430
  2751680898 --> 37984305

🛈 DocStrings

Bases: QGeoLocation

Source code in prettyqt/positioning/geolocation.py
class GeoLocation(QtPositioning.QGeoLocation):
    def get_address(self) -> positioning.GeoAddress:
        return positioning.GeoAddress(self.address())

    def get_coordinate(self) -> positioning.GeoCoordinate:
        return positioning.GeoCoordinate(self.coordinate())

    def get_bounding_shape(self) -> positioning.GeoShape:
        return positioning.GeoShape(self.boundingShape())

:fa-brands-github: Show source on GitHub