class QGeoRoute#

Synopsis#

Properties#

Methods#

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description#

Note

Properties can be used directly when from __feature__ import true_property is used or via accessor functions otherwise.

property boundsᅟ: QGeoRectangle#
Access functions:
property distanceᅟ: float#
Access functions:
property extendedAttributesᅟ: Dictionary with keys of type .QString and values of type QVariant.#
Access functions:
property legIndexᅟ: int#
Access functions:
property overallRouteᅟ: QGeoRoute#
Access functions:
property pathᅟ: list of QGeoCoordinate#
Access functions:
property routeIdᅟ: str#
Access functions:
property routeLegsᅟ: list of QGeoRoute#
Access functions:
property segmentsᅟ: list of QGeoRouteSegment#
Access functions:
property segmentsCountᅟ: int#
Access functions:
property travelTimeᅟ: int#
Access functions:
__init__(other)#
Parameters:

otherQGeoRoute

__init__()
bounds()#
Return type:

QGeoRectangle

Getter of property boundsᅟ .

distance()#
Return type:

float

Getter of property distanceᅟ .

extendedAttributes()#
Return type:

Dictionary with keys of type .QString and values of type QVariant.

Getter of property extendedAttributesᅟ .

firstRouteSegment()#
Return type:

QGeoRouteSegment

legIndex()#
Return type:

int

Getter of property legIndexᅟ .

__ne__(rhs)#
Parameters:

rhsQGeoRoute

Return type:

bool

__eq__(rhs)#
Parameters:

rhsQGeoRoute

Return type:

bool

overallRoute()#
Return type:

QGeoRoute

Getter of property overallRouteᅟ .

path()#
Return type:

.list of QGeoCoordinate

Getter of property pathᅟ .

request()#
Return type:

QGeoRouteRequest

routeId()#
Return type:

str

Getter of property routeIdᅟ .

routeLegs()#
Return type:

.list of QGeoRoute

Getter of property routeLegsᅟ .

segments()#
Return type:

.list of QGeoRouteSegment

Getter of property segmentsᅟ .

segmentsCount()#
Return type:

int

Getter of property segmentsCountᅟ .

setBounds(bounds)#
Parameters:

boundsQGeoRectangle

setDistance(distance)#
Parameters:

distance – float

setExtendedAttributes(extendedAttributes)#
Parameters:

extendedAttributes – Dictionary with keys of type .QString and values of type QVariant.

setFirstRouteSegment(routeSegment)#
Parameters:

routeSegmentQGeoRouteSegment

setLegIndex(idx)#
Parameters:

idx – int

setOverallRoute(route)#
Parameters:

routeQGeoRoute

setPath(path)#
Parameters:

path – .list of QGeoCoordinate

Setter of property pathᅟ .

setRequest(request)#
Parameters:

requestQGeoRouteRequest

setRouteId(id)#
Parameters:

id – str

setRouteLegs(legs)#
Parameters:

legs – .list of QGeoRoute

setTravelMode(mode)#
Parameters:

modeTravelMode

setTravelTime(secs)#
Parameters:

secs – int

swap(other)#
Parameters:

otherQGeoRoute

travelMode()#
Return type:

TravelMode

travelTime()#
Return type:

int

Getter of property travelTimeᅟ .