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 PySide2.QtPositioning.QGeoLocation露

PySide2.QtPositioning.QGeoLocation(other)

param other:

PySide2.QtPositioning.QGeoLocation

Constructs an new location object.

Constructs a copy of other

PySide2.QtPositioning.QGeoLocation.address()露
Return type:

PySide2.QtPositioning.QGeoAddress

Returns the address of the location.

See also

setAddress()

PySide2.QtPositioning.QGeoLocation.boundingBox()露
Return type:

PySide2.QtPositioning.QGeoRectangle

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

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

See also

setBoundingBox()

PySide2.QtPositioning.QGeoLocation.coordinate()露
Return type:

PySide2.QtPositioning.QGeoCoordinate

Returns the coordinate of the location.

See also

setCoordinate()

PySide2.QtPositioning.QGeoLocation.extendedAttributes()露
Return type:

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

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:

other 鈥� PySide2.QtPositioning.QGeoLocation

Return type:

bool

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

PySide2.QtPositioning.QGeoLocation.__eq__(other)露
Parameters:

other 鈥� PySide2.QtPositioning.QGeoLocation

Return type:

bool

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

PySide2.QtPositioning.QGeoLocation.setAddress(address)露
Parameters:

address 鈥� PySide2.QtPositioning.QGeoAddress

Sets the address of the location.

See also

address()

PySide2.QtPositioning.QGeoLocation.setBoundingBox(box)露
Parameters:

box 鈥� PySide2.QtPositioning.QGeoRectangle

Sets the boundingBox of the location.

See also

boundingBox()

PySide2.QtPositioning.QGeoLocation.setCoordinate(position)露
Parameters:

position 鈥� PySide2.QtPositioning.QGeoCoordinate

Sets the coordinate of the location.

See also

coordinate()

PySide2.QtPositioning.QGeoLocation.setExtendedAttributes(data)露
Parameters:

data 鈥�

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