QGeoLocationclass represents basic information about a location. 更多 …
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)
A
QGeoLocationconsists of a coordinate and corresponding address, along with an optional bounding box which is the recommended region to be displayed when viewing the location.
QGeoLocation
¶
QGeoLocation(other)
- param other
Constructs an new location object.
构造副本为
other
PySide2.QtPositioning.QGeoLocation.
address
(
)
¶
Returns the address of the location.
另请参阅
PySide2.QtPositioning.QGeoLocation.
boundingBox
(
)
¶
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.
另请参阅
PySide2.QtPositioning.QGeoLocation.
coordinate
(
)
¶
Returns the coordinate of the location.
另请参阅
PySide2.QtPositioning.QGeoLocation.
extendedAttributes
(
)
¶
Returns the extended attributes associated to this location. Extended attributes are backend-dependent and can be location-dependent.
PySide2.QtPositioning.QGeoLocation.
isEmpty
(
)
¶
bool
Returns true if all fields of the location are 0; otherwise returns false.
PySide2.QtPositioning.QGeoLocation.
__ne__
(
other
)
¶
other
–
QGeoLocation
bool
Returns true if this location is not equal to
other
,否则返回 false。
PySide2.QtPositioning.QGeoLocation.
__eq__
(
other
)
¶
other
–
QGeoLocation
bool
Returns true if this location is equal to
other
,否则返回 false。
PySide2.QtPositioning.QGeoLocation.
setAddress
(
address
)
¶
address
–
QGeoAddress
设置
address
of the location.
另请参阅
PySide2.QtPositioning.QGeoLocation.
setBoundingBox
(
box
)
¶
box
–
QGeoRectangle
设置
boundingBox
of the location.
另请参阅
PySide2.QtPositioning.QGeoLocation.
setCoordinate
(
position
)
¶
position
–
QGeoCoordinate
设置
coordinate
of the location.
另请参阅
PySide2.QtPositioning.QGeoLocation.
setExtendedAttributes
(
data
)
¶
data –
Sets the extended attributes of the location with the parameters specified in
data
.
另请参阅