PyANGKernel.GKPTSectionData¶
- class GKPTSectionData¶
a set of consecutive sections between two stops.
Details
See also
Synopsis¶
Methods¶
def
__init__()def
getDestination()def
getDistance()def
getOrigin()def
getRoute()def
getSpeed()def
usesStops()
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
- __init__()¶
- __init__(a)
- Parameters:
a –
GKPTSectionData
- __init__(origin, destination, delayFunction, fareFunction, route)
- Parameters:
origin –
GKBusStopdestination –
GKBusStopdelayFunction –
GKFunctionCostfareFunction –
GKFunctionCostroute – .list of GKSection
- getDelayFunction()¶
- Return type:
get the delay time function
get the total distance of the transit section
- getFareFunction()¶
- Return type:
get the fare function
- getSpeed(iModelConnection)¶
- Parameters:
iModelConnection –
GKModelConnection- Return type:
get the mean maximum speed.
- usesStops(origin, destination)¶
Returns true if this Transit Section goes from origin to destination