QGeoLocation¶
The
QGeoLocation
class represents basic information about a location. More…
Synopsis¶
Functions¶
def
__eq__
(other)def
__ne__
(other)def
address
()def
boundingBox
()def
coordinate
()def
extendedAttributes
()def
isEmpty
()def
setAddress
(address)def
setBoundingBox
(box)def
setCoordinate
(position)def
setExtendedAttributes
(data)
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:
Constructs an new location object.
Constructs a copy of
other
- PySide2.QtPositioning.QGeoLocation.address()¶
- Return type:
Returns the address of the location.
See also
- PySide2.QtPositioning.QGeoLocation.boundingBox()¶
- Return type:
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
- PySide2.QtPositioning.QGeoLocation.coordinate()¶
- Return type:
Returns the coordinate of the location.
See also
- PySide2.QtPositioning.QGeoLocation.extendedAttributes()¶
- Return type:
Returns the extended attributes associated to this location. Extended attributes are backend-dependent and can be location-dependent.
See also
- 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:
- Return type:
bool
Returns true if this location is not equal to
other
, otherwise returns false.
- PySide2.QtPositioning.QGeoLocation.__eq__(other)¶
- Parameters:
- 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
- PySide2.QtPositioning.QGeoLocation.setBoundingBox(box)¶
- Parameters:
Sets the
boundingBox
of the location.See also
- PySide2.QtPositioning.QGeoLocation.setCoordinate(position)¶
- Parameters:
position –
PySide2.QtPositioning.QGeoCoordinate
Sets the
coordinate
of the location.See also
- PySide2.QtPositioning.QGeoLocation.setExtendedAttributes(data)¶
- Parameters:
data –
Sets the extended attributes of the location with the parameters specified in
data
.See also
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.