QGeoLocation

The QGeoLocation class represents basic information about a location. More

Inheritance diagram of PySide2.QtPositioning.QGeoLocation

Synopsis

Functions

Detailed Description

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

class QGeoLocation

QGeoLocation(other)

param other

QGeoLocation

Constructs an new location object.

Constructs a copy of other

PySide2.QtPositioning.QGeoLocation.address()
Return type

QGeoAddress

Returns the address of the location.

See also

setAddress()

PySide2.QtPositioning.QGeoLocation.boundingBox()
Return type

QGeoRectangle

Returns a bounding box 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.

See also

setBoundingBox()

PySide2.QtPositioning.QGeoLocation.coordinate()
Return type

QGeoCoordinate

Returns the coordinate of the location.

See also

setCoordinate()

PySide2.QtPositioning.QGeoLocation.isEmpty()
Return type

bool

Returns true if all fields of the location are 0; otherwise returns false.

PySide2.QtPositioning.QGeoLocation.__ne__(other)
Parameters

otherQGeoLocation

Return type

bool

Returns true if this location is not equal to other , otherwise returns false.

PySide2.QtPositioning.QGeoLocation.__eq__(other)
Parameters

otherQGeoLocation

Return type

bool

Returns true if this location is equal to other , otherwise returns false.

PySide2.QtPositioning.QGeoLocation.setAddress(address)
Parameters

addressQGeoAddress

Sets the address of the location.

See also

address()

PySide2.QtPositioning.QGeoLocation.setBoundingBox(box)
Parameters

boxQGeoRectangle

Sets the boundingBox of the location.

See also

boundingBox()

PySide2.QtPositioning.QGeoLocation.setCoordinate(position)
Parameters

positionQGeoCoordinate

Sets the coordinate of the location.

See also

coordinate()