QGeoLocation

The QGeoLocation class represents basic information about a location. More

Inheritance diagram of PySide6.QtPositioning.QGeoLocation

Synopsis

Functions

Detailed Description

A QGeoLocation consists of a coordinate and corresponding address, along with an optional bounding shape, which is the recommended region to be displayed when viewing the location.

class PySide6.QtPositioning.QGeoLocation

PySide6.QtPositioning.QGeoLocation(other)

Parameters

otherPySide6.QtPositioning.QGeoLocation

Constructs an new location object.

PySide6.QtPositioning.QGeoLocation.address()
Return type

PySide6.QtPositioning.QGeoAddress

Returns the address of the location.

See also

setAddress()

PySide6.QtPositioning.QGeoLocation.boundingShape()
Return type

PySide6.QtPositioning.QGeoShape

Returns a bounding shape which represents the recommended region to display when viewing this location.

For example, a building’s location may have a region centered around the building, but the region is large enough to show it’s immediate surrounding geographical context.

Note

This method was introduced in Qt6 instead of boundingBox() method. It returns a QGeoShape instead of a QGeoRectangle . Use boundingGeoRectangle() to obtain a bounding QGeoRectangle for the shape.

PySide6.QtPositioning.QGeoLocation.coordinate()
Return type

PySide6.QtPositioning.QGeoCoordinate

Returns the coordinate of the location.

See also

setCoordinate()

PySide6.QtPositioning.QGeoLocation.extendedAttributes()
Return type

Returns the extended attributes associated to this location. Extended attributes are backend-dependent and can be location-dependent.

PySide6.QtPositioning.QGeoLocation.isEmpty()
Return type

bool

Returns true if the location coordinate is invalid , and all the other location fields are empty. Otherwise returns false.

PySide6.QtPositioning.QGeoLocation.__ne__(rhs)
Parameters

rhsPySide6.QtPositioning.QGeoLocation

Return type

bool

PySide6.QtPositioning.QGeoLocation.__eq__(rhs)
Parameters

rhsPySide6.QtPositioning.QGeoLocation

Return type

bool

PySide6.QtPositioning.QGeoLocation.setAddress(address)
Parameters

addressPySide6.QtPositioning.QGeoAddress

Sets the address of the location.

See also

address()

PySide6.QtPositioning.QGeoLocation.setBoundingShape(shape)
Parameters

shapePySide6.QtPositioning.QGeoShape

Sets the boundingShape of the location.

See also

boundingShape()

PySide6.QtPositioning.QGeoLocation.setCoordinate(position)
Parameters

positionPySide6.QtPositioning.QGeoCoordinate

Sets the coordinate of the location.

See also

coordinate()

PySide6.QtPositioning.QGeoLocation.setExtendedAttributes(data)
Parameters

data

Sets the extended attributes of the location with the parameters specified in data.

PySide6.QtPositioning.QGeoLocation.swap(other)
Parameters

otherPySide6.QtPositioning.QGeoLocation