|
libosmscout 1.1.1
|
#include <libosmscout-client-qt/include/osmscoutclientqt/Router.h>


Public Slots | |
| void | Initialize () |
| void | onRouteRequest (LocationEntryRef start, LocationEntryRef target, QmlRoutingProfileRef profile, int requestId, osmscout::BreakerRef breaker, std::optional< osmscout::Bearing > bearing) |
Signals | |
| void | routeComputed (QtRouteData route, int requestId) |
| void | routeFailed (QString reason, int requestId) |
| void | routeCanceled (int requestId) |
| void | routingProgress (int percent, int requestId) |
Public Member Functions | |
| Router (QThread *thread, SettingsRef settings, DBThreadRef dbThread) | |
| virtual | ~Router () |
| osmscout::Router::Router | ( | QThread * | thread, |
| SettingsRef | settings, | ||
| DBThreadRef | dbThread ) |
|
virtual |
|
slot |
|
slot |
Start Route computation. Router emits multiple routingProgress followed by routeComputed or routeFailed with requestId identifier.
User of this function should use Qt::QueuedConnection for invoking this slot, search may generate IO load and may took long time.
Route computation can be long depending on the complexity of the route (the further away the endpoints, the more difficult the routing).
| start | - starting position for route computation |
| target | - end position for route computation |
| vehicle | - used vehicle for route |
| requestId | - id used later in routeComputed/routeFailed signals |
| breaker | - breaker that may be used for cancel routing computation |
|
signal |
|
signal |
|
signal |
|
signal |