Sophie

Sophie

distrib > Mageia > 7 > aarch64 > by-pkgid > 2c21526e2a037dc4eaceb3895021e482 > files > 83

qtlocation5-doc-5.12.6-1.mga7.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qgeoroutingmanager.cpp -->
  <title>QGeoRoutingManager Class | Qt Location 5.12.6</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td >Qt 5.12</td><td ><a href="qtlocation-index.html">Qt Location</a></td><td ><a href="qtlocation-module.html">C++ Classes</a></td><td >QGeoRoutingManager</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right"><a href="qtlocation-index.html">Qt 5.12.6 Reference Documentation</a></td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#signals">Signals</a></li>
<li class="level1"><a href="#static-public-members">Static Public Members</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">QGeoRoutingManager Class</h1>
<!-- $$$QGeoRoutingManager-brief -->
<p>The <a href="qgeoroutingmanager.html">QGeoRoutingManager</a> class provides support for geographic routing operations. <a href="#details">More...</a></p>
<!-- @@@QGeoRoutingManager -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QGeoRoutingManager&gt;</span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += location</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign">  Qt 5.6</td></tr></table></div><ul>
<li><a href="qgeoroutingmanager-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-functions"></a>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qgeoroutingmanager.html#dtor.QGeoRoutingManager">~QGeoRoutingManager</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGeoRouteReply *</td><td class="memItemRight bottomAlign"><b><a href="qgeoroutingmanager.html#calculateRoute">calculateRoute</a></b>(const QGeoRouteRequest &amp;<i>request</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QLocale </td><td class="memItemRight bottomAlign"><b><a href="qgeoroutingmanager.html#locale">locale</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qgeoroutingmanager.html#managerName">managerName</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qgeoroutingmanager.html#managerVersion">managerVersion</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QLocale::MeasurementSystem </td><td class="memItemRight bottomAlign"><b><a href="qgeoroutingmanager.html#measurementSystem">measurementSystem</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgeoroutingmanager.html#setLocale">setLocale</a></b>(const QLocale &amp;<i>locale</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgeoroutingmanager.html#setMeasurementSystem">setMeasurementSystem</a></b>(QLocale::MeasurementSystem <i>system</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGeoRouteRequest::FeatureTypes </td><td class="memItemRight bottomAlign"><b><a href="qgeoroutingmanager.html#supportedFeatureTypes">supportedFeatureTypes</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGeoRouteRequest::FeatureWeights </td><td class="memItemRight bottomAlign"><b><a href="qgeoroutingmanager.html#supportedFeatureWeights">supportedFeatureWeights</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGeoRouteRequest::ManeuverDetails </td><td class="memItemRight bottomAlign"><b><a href="qgeoroutingmanager.html#supportedManeuverDetails">supportedManeuverDetails</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGeoRouteRequest::RouteOptimizations </td><td class="memItemRight bottomAlign"><b><a href="qgeoroutingmanager.html#supportedRouteOptimizations">supportedRouteOptimizations</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGeoRouteRequest::SegmentDetails </td><td class="memItemRight bottomAlign"><b><a href="qgeoroutingmanager.html#supportedSegmentDetails">supportedSegmentDetails</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGeoRouteRequest::TravelModes </td><td class="memItemRight bottomAlign"><b><a href="qgeoroutingmanager.html#supportedTravelModes">supportedTravelModes</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGeoRouteReply *</td><td class="memItemRight bottomAlign"><b><a href="qgeoroutingmanager.html#updateRoute">updateRoute</a></b>(const QGeoRoute &amp;<i>route</i>, const QGeoCoordinate &amp;<i>position</i>)</td></tr>
</table></div>
<a name="signals"></a>
<h2 id="signals">Signals</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgeoroutingmanager.html#error">error</a></b>(QGeoRouteReply *<i>reply</i>, QGeoRouteReply::Error <i>error</i>, QString <i>errorString</i> = QString())</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgeoroutingmanager.html#finished">finished</a></b>(QGeoRouteReply *<i>reply</i>)</td></tr>
</table></div>
<a name="static-public-members"></a>
<h2 id="static-public-members">Static Public Members</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> const QMetaObject </td><td class="memItemRight bottomAlign"><b><a href="qgeoroutingmanager.html#staticMetaObject-var">staticMetaObject</a></b></td></tr>
</table></div>
<a name="details"></a>
<!-- $$$QGeoRoutingManager-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qgeoroutingmanager.html">QGeoRoutingManager</a> class provides support for geographic routing operations.</p>
<p>The <a href="qgeoroutingmanager.html#calculateRoute">calculateRoute</a>() and <a href="qgeoroutingmanager.html#updateRoute">updateRoute</a>() methods function <a href="qgeoroutereply.html">QGeoRouteReply</a> objects, which manage these operations and report on the result of the operations and any errors which may have occurred.</p>
<p>The <a href="qgeoroutingmanager.html#calculateRoute">calculateRoute</a>() function is used to find a route (or routes) that follows a set of waypoints and matches various other criteria. The <a href="qgeorouterequest.html">QGeoRouteRequest</a> class is used to specify this information.</p>
<p>If supportsRouteUpdates() returns true then the <a href="qgeoroutingmanager.html">QGeoRoutingManager</a> supports updating route information based on position updates. This will cause the travel time and distance estimates to be updated, and any QGeoRouteSegments already traversed to be removed from the route.</p>
<p>The updates can be triggered with the <a href="qgeoroutingmanager.html#updateRoute">updateRoute</a>() function, which makes use of the QGeoPositionInfo instances emitted as position updates by QGeoPositionInfoSource.</p>
<p>Instances of <a href="qgeoroutingmanager.html">QGeoRoutingManager</a> can be accessed with <a href="qgeoserviceprovider.html#routingManager">QGeoServiceProvider::routingManager</a>().</p>
<p>A small example of the usage of <a href="qgeoroutingmanager.html">QGeoRoutingManager</a> and QGeoRouteRequests follows:</p>
<pre class="cpp">

  <span class="keyword">class</span> MyRouteHandler : <span class="keyword">public</span> <span class="type">QObject</span>
  {
      Q_OBJECT
  <span class="keyword">public</span>:
      MyRouteHandler(<span class="type">QGeoRoutingManager</span> <span class="operator">*</span>routingManager<span class="operator">,</span>
                     <span class="keyword">const</span> <span class="type">QGeoCoordinate</span> <span class="operator">&amp;</span>origin<span class="operator">,</span>
                     <span class="keyword">const</span> <span class="type">QGeoCoordinate</span> <span class="operator">&amp;</span>destination) {

          <span class="type"><a href="qgeorouterequest.html">QGeoRouteRequest</a></span> request(origin<span class="operator">,</span> destination);

          <span class="comment">// The request defaults to the fastest route by car, which is</span>
          <span class="comment">// equivalent to:</span>
          <span class="comment">// request.setTravelMode(QGeoRouteRequest::CarTravel);</span>
          <span class="comment">// request.setRouteOptimization(QGeoRouteRequest::FastestRoute);</span>

          request<span class="operator">.</span>setAvoidFeatureTypes(<span class="type"><a href="qgeorouterequest.html">QGeoRouteRequest</a></span><span class="operator">::</span>AvoidTolls);
          request<span class="operator">.</span>setAvoidFeatureTypes(<span class="type"><a href="qgeorouterequest.html">QGeoRouteRequest</a></span><span class="operator">::</span>AvoidMotorPoolLanes);

          <span class="type"><a href="qgeorouterequest.html">QGeoRouteRequest</a></span><span class="operator">::</span>AvoidFeaturesTypes avoidableFeatures <span class="operator">=</span> routingManager<span class="operator">-</span><span class="operator">&gt;</span>supportedAvoidFeatureTypes();

          <span class="keyword">if</span> (<span class="operator">!</span>(avoidableFeatures <span class="operator">&amp;</span> request<span class="operator">.</span>avoidFeatureTypes())) {
              <span class="comment">// ... inform the user that the routing manager does not</span>
              <span class="comment">// provide support for avoiding tolls and/or motor pool lanes ...</span>
              <span class="keyword">return</span>;
          }

          <span class="type"><a href="qgeoroutereply.html">QGeoRouteReply</a></span> <span class="operator">*</span>reply <span class="operator">=</span> routingManager<span class="operator">-</span><span class="operator">&gt;</span>calculateRoute(request);

          <span class="keyword">if</span> (reply<span class="operator">-</span><span class="operator">&gt;</span>isFinished()) {
              <span class="keyword">if</span> (reply<span class="operator">-</span><span class="operator">&gt;</span>error() <span class="operator">=</span><span class="operator">=</span> <span class="type"><a href="qgeoroutereply.html">QGeoRouteReply</a></span><span class="operator">::</span>NoError) {
                  routeCalculated(reply);
              } <span class="keyword">else</span> {
                  routeError(reply<span class="operator">,</span> reply<span class="operator">-</span><span class="operator">&gt;</span>error()<span class="operator">,</span> reply<span class="operator">-</span><span class="operator">&gt;</span>errorString());
              }
              <span class="keyword">return</span>;
          }

          connect(routingManager<span class="operator">,</span>
                  SIGNAL(finished(<span class="type"><a href="qgeoroutereply.html">QGeoRouteReply</a></span><span class="operator">*</span>))<span class="operator">,</span>
                  <span class="keyword">this</span><span class="operator">,</span>
                  SLOT(routeCalculated(<span class="type"><a href="qgeoroutereply.html">QGeoRouteReply</a></span><span class="operator">*</span>)));

          connect(routingManager<span class="operator">,</span>
                  SIGNAL(error(<span class="type"><a href="qgeoroutereply.html">QGeoRouteReply</a></span><span class="operator">*</span><span class="operator">,</span><span class="type"><a href="qgeoroutereply.html">QGeoRouteReply</a></span><span class="operator">::</span>Error<span class="operator">,</span><span class="type">QString</span>))<span class="operator">,</span>
                  <span class="keyword">this</span><span class="operator">,</span>
                  SLOT(routeError(<span class="type"><a href="qgeoroutereply.html">QGeoRouteReply</a></span><span class="operator">*</span><span class="operator">,</span><span class="type"><a href="qgeoroutereply.html">QGeoRouteReply</a></span><span class="operator">::</span>Error<span class="operator">,</span><span class="type">QString</span>)));
      }

  <span class="keyword">private</span> <span class="keyword">slots</span>:
      <span class="type">void</span> routeCalculated(<span class="type"><a href="qgeoroutereply.html">QGeoRouteReply</a></span> <span class="operator">*</span>reply)
      {
          <span class="comment">// A route request can ask for several alternative routes ...</span>
          <span class="keyword">if</span> (reply<span class="operator">-</span><span class="operator">&gt;</span>routes()<span class="operator">.</span>size() <span class="operator">!</span><span class="operator">=</span> <span class="number">0</span>) {

              <span class="comment">// ... but by default it will only get a single route</span>
              <span class="type"><a href="qgeoroute.html">QGeoRoute</a></span> route <span class="operator">=</span> reply<span class="operator">-</span><span class="operator">&gt;</span>routes()<span class="operator">.</span>at(<span class="number">0</span>);

              <span class="comment">//... now we have to make use of the route ...</span>
          }

          reply<span class="operator">-</span><span class="operator">&gt;</span>deleteLater();
      }

      <span class="type">void</span> routeError(<span class="type"><a href="qgeoroutereply.html">QGeoRouteReply</a></span> <span class="operator">*</span>reply<span class="operator">,</span> <span class="type"><a href="qgeoroutereply.html">QGeoRouteReply</a></span>:Error error<span class="operator">,</span> <span class="keyword">const</span> <span class="type">QString</span> <span class="operator">&amp;</span>errorString)
      {
          <span class="comment">// ... inform the user that an error has occurred ...</span>
          reply<span class="operator">-</span><span class="operator">&gt;</span>deleteLater();
      }
  };

</pre>
</div>
<!-- @@@QGeoRoutingManager -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$~QGeoRoutingManager[overload1]$$$~QGeoRoutingManager -->
<h3 class="fn" id="dtor.QGeoRoutingManager"><a name="dtor.QGeoRoutingManager"></a><code>[virtual] </code>QGeoRoutingManager::<span class="name">~QGeoRoutingManager</span>()</h3>
<p>Destroys this manager.</p>
<!-- @@@~QGeoRoutingManager -->
<!-- $$$calculateRoute[overload1]$$$calculateRouteconstQGeoRouteRequest& -->
<h3 class="fn" id="calculateRoute"><a name="calculateRoute"></a><span class="type"><a href="qgeoroutereply.html">QGeoRouteReply</a></span> *QGeoRoutingManager::<span class="name">calculateRoute</span>(const <span class="type"><a href="qgeorouterequest.html">QGeoRouteRequest</a></span> &amp;<i>request</i>)</h3>
<p>Begins the calculation of the route specified by <i>request</i>.</p>
<p>A <a href="qgeoroutereply.html">QGeoRouteReply</a> object will be returned, which can be used to manage the routing operation and to return the results of the operation.</p>
<p>This manager and the returned <a href="qgeoroutereply.html">QGeoRouteReply</a> object will emit signals indicating if the operation completes or if errors occur.</p>
<p>Once the operation has completed, <a href="qgeoroutereply.html#routes">QGeoRouteReply::routes</a> can be used to retrieve the calculated route or routes.</p>
<p>If <i>request</i> includes features which are not supported by this manager, as reported by the methods in this manager, then a <a href="qgeoroutereply.html#Error-enum">QGeoRouteReply::UnsupportedOptionError</a> will occur.</p>
<p>The user is responsible for deleting the returned reply object, although this can be done in the slot connected to <a href="qgeoroutingmanager.html#finished">QGeoRoutingManager::finished</a>(), <a href="qgeoroutingmanager.html#error">QGeoRoutingManager::error</a>(), <a href="qgeoroutereply.html#finished">QGeoRouteReply::finished</a>() or <a href="qgeoroutereply.html#error">QGeoRouteReply::error</a>() with deleteLater().</p>
<!-- @@@calculateRoute -->
<!-- $$$error[overload1]$$$errorQGeoRouteReply*QGeoRouteReply::ErrorQString -->
<h3 class="fn" id="error"><a name="error"></a><code>[signal] </code><span class="type">void</span> QGeoRoutingManager::<span class="name">error</span>(<span class="type"><a href="qgeoroutereply.html">QGeoRouteReply</a></span> *<i>reply</i>, <span class="type"><a href="qgeoroutereply.html#Error-enum">QGeoRouteReply::Error</a></span> <i>error</i>, <span class="type">QString</span> <i>errorString</i> = QString())</h3>
<p>This signal is emitted when an error has been detected in the processing of <i>reply</i>. The <a href="qgeoroutingmanager.html#finished">QGeoRoutingManager::finished</a>() signal will probably follow.</p>
<p>The error will be described by the error code <i>error</i>. If <i>errorString</i> is not empty it will contain a textual description of the error.</p>
<p>This signal and <a href="qgeoroutereply.html#error">QGeoRouteReply::error</a>() will be emitted at the same time.</p>
<p><b>Note: </b>Do not delete the <i>reply</i> object in the slot connected to this signal. Use deleteLater() instead.</p><!-- @@@error -->
<!-- $$$finished[overload1]$$$finishedQGeoRouteReply* -->
<h3 class="fn" id="finished"><a name="finished"></a><code>[signal] </code><span class="type">void</span> QGeoRoutingManager::<span class="name">finished</span>(<span class="type"><a href="qgeoroutereply.html">QGeoRouteReply</a></span> *<i>reply</i>)</h3>
<p>This signal is emitted when <i>reply</i> has finished processing.</p>
<p>If reply::error() equals <a href="qgeoroutereply.html#Error-enum">QGeoRouteReply::NoError</a> then the processing finished successfully.</p>
<p>This signal and <a href="qgeoroutereply.html#finished">QGeoRouteReply::finished</a>() will be emitted at the same time.</p>
<p><b>Note: </b>Do not delete the <i>reply</i> object in the slot connected to this signal. Use deleteLater() instead.</p><!-- @@@finished -->
<!-- $$$locale[overload1]$$$locale -->
<h3 class="fn" id="locale"><a name="locale"></a><span class="type">QLocale</span> QGeoRoutingManager::<span class="name">locale</span>() const</h3>
<p>Returns the locale used to hint to this routing manager about what language to use for addresses and instructions.</p>
<p><b>See also </b><a href="qgeoroutingmanager.html#setLocale">setLocale</a>().</p>
<!-- @@@locale -->
<!-- $$$managerName[overload1]$$$managerName -->
<h3 class="fn" id="managerName"><a name="managerName"></a><span class="type">QString</span> QGeoRoutingManager::<span class="name">managerName</span>() const</h3>
<p>Returns the name of the engine which implements the behaviour of this routing manager.</p>
<p>The combination of managerName() and <a href="qgeoroutingmanager.html#managerVersion">managerVersion</a>() should be unique amongst the plugin implementations.</p>
<!-- @@@managerName -->
<!-- $$$managerVersion[overload1]$$$managerVersion -->
<h3 class="fn" id="managerVersion"><a name="managerVersion"></a><span class="type">int</span> QGeoRoutingManager::<span class="name">managerVersion</span>() const</h3>
<p>Returns the version of the engine which implements the behaviour of this routin manager.</p>
<p>The combination of <a href="qgeoroutingmanager.html#managerName">managerName</a>() and managerVersion() should be unique amongst the plugin implementations.</p>
<!-- @@@managerVersion -->
<!-- $$$measurementSystem[overload1]$$$measurementSystem -->
<h3 class="fn" id="measurementSystem"><a name="measurementSystem"></a><span class="type">QLocale::MeasurementSystem</span> QGeoRoutingManager::<span class="name">measurementSystem</span>() const</h3>
<p>Returns the measurement system used by this manager.</p>
<p>If <a href="qgeoroutingmanager.html#setMeasurementSystem">setMeasurementSystem</a>() has been called then the value returned by this function may be different to that returned by <a href="qgeoroutingmanager.html#locale">locale</a>().measurementSystem(). In which case the value returned by this function is what will be used by the manager.</p>
<p><b>See also </b><a href="qgeoroutingmanager.html#setMeasurementSystem">setMeasurementSystem</a>() and <a href="qgeoroutingmanager.html#setLocale">setLocale</a>().</p>
<!-- @@@measurementSystem -->
<!-- $$$setLocale[overload1]$$$setLocaleconstQLocale& -->
<h3 class="fn" id="setLocale"><a name="setLocale"></a><span class="type">void</span> QGeoRoutingManager::<span class="name">setLocale</span>(const <span class="type">QLocale</span> &amp;<i>locale</i>)</h3>
<p>Sets the locale to be used by this manager to <i>locale</i>.</p>
<p>If this routing manager supports returning addresses and instructions in different languages, they will be returned in the language of <i>locale</i>.</p>
<p>The locale used defaults to the system locale if this is not set.</p>
<p><b>See also </b><a href="qgeoroutingmanager.html#locale">locale</a>().</p>
<!-- @@@setLocale -->
<!-- $$$setMeasurementSystem[overload1]$$$setMeasurementSystemQLocale::MeasurementSystem -->
<h3 class="fn" id="setMeasurementSystem"><a name="setMeasurementSystem"></a><span class="type">void</span> QGeoRoutingManager::<span class="name">setMeasurementSystem</span>(<span class="type">QLocale::MeasurementSystem</span> <i>system</i>)</h3>
<p>Sets the measurement system used by this manager to <i>system</i>.</p>
<p>The measurement system can be set independently of the locale. Both <a href="qgeoroutingmanager.html#setLocale">setLocale</a>() and this function set the measurement system. The value set by the last function called will be used.</p>
<p><b>See also </b><a href="qgeoroutingmanager.html#measurementSystem">measurementSystem</a>(), <a href="qgeoroutingmanager.html#locale">locale</a>(), and <a href="qgeoroutingmanager.html#setLocale">setLocale</a>().</p>
<!-- @@@setMeasurementSystem -->
<!-- $$$supportedFeatureTypes[overload1]$$$supportedFeatureTypes -->
<h3 class="fn" id="supportedFeatureTypes"><a name="supportedFeatureTypes"></a><span class="type"><a href="qgeorouterequest.html#FeatureType-enum">QGeoRouteRequest::FeatureTypes</a></span> QGeoRoutingManager::<span class="name">supportedFeatureTypes</span>() const</h3>
<p>Returns the types of features that this manager can take into account during route planning.</p>
<!-- @@@supportedFeatureTypes -->
<!-- $$$supportedFeatureWeights[overload1]$$$supportedFeatureWeights -->
<h3 class="fn" id="supportedFeatureWeights"><a name="supportedFeatureWeights"></a><span class="type"><a href="qgeorouterequest.html#FeatureWeight-enum">QGeoRouteRequest::FeatureWeights</a></span> QGeoRoutingManager::<span class="name">supportedFeatureWeights</span>() const</h3>
<p>Returns the weightings which this manager can apply to different features during route planning.</p>
<!-- @@@supportedFeatureWeights -->
<!-- $$$supportedManeuverDetails[overload1]$$$supportedManeuverDetails -->
<h3 class="fn" id="supportedManeuverDetails"><a name="supportedManeuverDetails"></a><span class="type"><a href="qgeorouterequest.html#ManeuverDetail-enum">QGeoRouteRequest::ManeuverDetails</a></span> QGeoRoutingManager::<span class="name">supportedManeuverDetails</span>() const</h3>
<p>Returns the levels of detail for navigation maneuvers which can be requested by this manager.</p>
<!-- @@@supportedManeuverDetails -->
<!-- $$$supportedRouteOptimizations[overload1]$$$supportedRouteOptimizations -->
<h3 class="fn" id="supportedRouteOptimizations"><a name="supportedRouteOptimizations"></a><span class="type"><a href="qgeorouterequest.html#RouteOptimization-enum">QGeoRouteRequest::RouteOptimizations</a></span> QGeoRoutingManager::<span class="name">supportedRouteOptimizations</span>() const</h3>
<p>Returns the route optimizations supported by this manager.</p>
<!-- @@@supportedRouteOptimizations -->
<!-- $$$supportedSegmentDetails[overload1]$$$supportedSegmentDetails -->
<h3 class="fn" id="supportedSegmentDetails"><a name="supportedSegmentDetails"></a><span class="type"><a href="qgeorouterequest.html#SegmentDetail-enum">QGeoRouteRequest::SegmentDetails</a></span> QGeoRoutingManager::<span class="name">supportedSegmentDetails</span>() const</h3>
<p>Returns the levels of detail for routing segments which can be requested with this manager.</p>
<!-- @@@supportedSegmentDetails -->
<!-- $$$supportedTravelModes[overload1]$$$supportedTravelModes -->
<h3 class="fn" id="supportedTravelModes"><a name="supportedTravelModes"></a><span class="type"><a href="qgeorouterequest.html#TravelMode-enum">QGeoRouteRequest::TravelModes</a></span> QGeoRoutingManager::<span class="name">supportedTravelModes</span>() const</h3>
<p>Returns the travel modes supported by this manager.</p>
<!-- @@@supportedTravelModes -->
<!-- $$$updateRoute[overload1]$$$updateRouteconstQGeoRoute&constQGeoCoordinate& -->
<h3 class="fn" id="updateRoute"><a name="updateRoute"></a><span class="type"><a href="qgeoroutereply.html">QGeoRouteReply</a></span> *QGeoRoutingManager::<span class="name">updateRoute</span>(const <span class="type"><a href="qgeoroute.html">QGeoRoute</a></span> &amp;<i>route</i>, const <span class="type">QGeoCoordinate</span> &amp;<i>position</i>)</h3>
<p>Begins the process of updating <i>route</i> based on the current position <i>position</i>.</p>
<p>A <a href="qgeoroutereply.html">QGeoRouteReply</a> object will be returned, which can be used to manage the routing operation and to return the results of the operation.</p>
<p>This manager and the returned <a href="qgeoroutereply.html">QGeoRouteReply</a> object will emit signals indicating if the operation completes or if errors occur.</p>
<p>If supportsRouteUpdates() returns false an <a href="qgeoroutereply.html#Error-enum">QGeoRouteReply::UnsupportedOptionError</a> will occur.</p>
<p>Once the operation has completed, <a href="qgeoroutereply.html#routes">QGeoRouteReply::routes</a> can be used to retrieve the updated route.</p>
<p>The returned route could be entirely different to the original route, especially if <i>position</i> is far away from the initial route. Otherwise the route will be similar, although the remaining time and distance will be updated and any segments of the original route which have been traversed will be removed.</p>
<p>The user is responsible for deleting the returned reply object, although this can be done in the slot connected to <a href="qgeoroutingmanager.html#finished">QGeoRoutingManager::finished</a>(), <a href="qgeoroutingmanager.html#error">QGeoRoutingManager::error</a>(), <a href="qgeoroutereply.html#finished">QGeoRouteReply::finished</a>() or <a href="qgeoroutereply.html#error">QGeoRouteReply::error</a>() with deleteLater().</p>
<!-- @@@updateRoute -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2019 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br/>    Qt and respective logos are trademarks of The Qt Company Ltd.     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>