GeoRouteRequest
Qt Base Class: QGeoRouteRequest
Signature: QGeoRouteRequest(self, origin: PySide6.QtPositioning.QGeoCoordinate, destination: PySide6.QtPositioning.QGeoCoordinate) -> None
QGeoRouteRequest(self, other: PySide6.QtLocation.QGeoRouteRequest) -> None
QGeoRouteRequest(self, waypoints: Sequence[PySide6.QtPositioning.QGeoCoordinate] = Default(QList<QGeoCoordinate>)) -> None
Base classes
Name | Children | Inherits |
---|---|---|
QGeoRouteRequest PySide6.QtLocation QGeoRouteRequest(self, origin: PySide6.QtPositioning.QGeoCoordinate, destination: PySide6.QtPositioning.QGeoCoordinate) -> None |
⋔ Inheritance diagram
graph TD
1473573431696["location.GeoRouteRequest"]
1473573384848["QtLocation.QGeoRouteRequest"]
1473291690208["Shiboken.Object"]
140713234304496["builtins.object"]
1473573384848 --> 1473573431696
1473291690208 --> 1473573384848
140713234304496 --> 1473291690208
🛈 DocStrings
Bases: QGeoRouteRequest
Represents the params and restrictions defining a routing information request.
Source code in prettyqt\location\georouterequest.py
get_feature_weight(feature: FeatureTypeStr | QtLocation.QGeoRouteRequest.FeatureType) -> FeatureWeightStr
Return current feature weight.
Source code in prettyqt\location\georouterequest.py
get_route_optimization() -> RouteOptimizationStr
Return current route optimization.
set_feature_weight(feature: FeatureTypeStr | QtLocation.QGeoRouteRequest.FeatureType, weight: FeatureWeightStr | QtLocation.QGeoRouteRequest.FeatureWeight)
Set the feature weight.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
feature |
FeatureTypeStr | FeatureType
|
Feature type |
required |
weight |
FeatureWeightStr | FeatureWeight
|
Feature weight |
required |
Source code in prettyqt\location\georouterequest.py
set_route_optimization(optimization: RouteOptimizationStr | QtLocation.QGeoRouteRequest.RouteOptimization)
Set the route optimization.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
optimization |
RouteOptimizationStr | RouteOptimization
|
Route optimization |
required |