- class QGeoRouteSegment#
Synopsis#
Properties#
Methods#
def
__init__()
def
distance()
def
isValid()
def
maneuver()
def
__ne__()
def
__eq__()
def
path()
def
setDistance()
def
setManeuver()
def
setPath()
def
setTravelTime()
def
swap()
def
travelTime()
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:
other –
QGeoRouteSegment
- __init__()
- distance()#
- Return type:
float
Getter of property
distanceᅟ
.- isLegLastSegment()#
- Return type:
bool
- isValid()#
- Return type:
bool
- maneuver()#
- Return type:
Getter of property
maneuverᅟ
.- nextRouteSegment()#
- Return type:
- __ne__(rhs)#
- Parameters:
rhs –
QGeoRouteSegment
- Return type:
bool
- __eq__(rhs)#
- Parameters:
rhs –
QGeoRouteSegment
- Return type:
bool
- path()#
- Return type:
.list of QGeoCoordinate
Getter of property
pathᅟ
.- setDistance(distance)#
- Parameters:
distance – float
- setManeuver(maneuver)#
- Parameters:
maneuver –
QGeoManeuver
- setNextRouteSegment(routeSegment)#
- Parameters:
routeSegment –
QGeoRouteSegment
- setPath(path)#
- Parameters:
path – .list of QGeoCoordinate
- setTravelTime(secs)#
- Parameters:
secs – int
- swap(other)#
- Parameters:
other –
QGeoRouteSegment
- travelTime()#
- Return type:
int
Getter of property
travelTimeᅟ
.