class QGeoRouteSegment#

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 distanceᅟ: float#
Access functions:
property maneuverᅟ: QGeoManeuver#
Access functions:
property pathᅟ: list of QGeoCoordinate#
Access functions:
property travelTimeᅟ: int#
Access functions:
__init__(other)#
Parameters:

otherQGeoRouteSegment

__init__()
distance()#
Return type:

float

Getter of property distanceᅟ .

isLegLastSegment()#
Return type:

bool

isValid()#
Return type:

bool

maneuver()#
Return type:

QGeoManeuver

Getter of property maneuverᅟ .

nextRouteSegment()#
Return type:

QGeoRouteSegment

__ne__(rhs)#
Parameters:

rhsQGeoRouteSegment

Return type:

bool

__eq__(rhs)#
Parameters:

rhsQGeoRouteSegment

Return type:

bool

path()#
Return type:

.list of QGeoCoordinate

Getter of property pathᅟ .

setDistance(distance)#
Parameters:

distance – float

setManeuver(maneuver)#
Parameters:

maneuverQGeoManeuver

setNextRouteSegment(routeSegment)#
Parameters:

routeSegmentQGeoRouteSegment

setPath(path)#
Parameters:

path – .list of QGeoCoordinate

setTravelTime(secs)#
Parameters:

secs – int

swap(other)#
Parameters:

otherQGeoRouteSegment

travelTime()#
Return type:

int

Getter of property travelTimeᅟ .