<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- qdeclarativegeoroutemodel.cpp --> <title>RouteQuery QML Type | Qt Location 5.11</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 ><a href="../qtdoc/index.html">Qt 5.11</a></td><td ><a href="qtlocation-index.html">Qt Location</a></td><td ><a href="qtlocation-qmlmodule.html">QML Types</a></td><td >RouteQuery QML Type</td></tr></table><table class="buildversion"><tr> <td id="buildversion" width="100%" align="right">Qt 5.11.2 Reference Documentation</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="#properties">Properties</a></li> <li class="level1"><a href="#methods">Methods</a></li> <li class="level1"><a href="#details">Detailed Description</a></li> <li class="level2"><a href="#example-usage">Example Usage</a></li> </ul> </div> <div class="sidebar-content" id="sidebar-content"></div></div> <h1 class="title">RouteQuery QML Type</h1> <span class="subtitle"></span> <!-- $$$RouteQuery-brief --> <p>The <a href="qml-qtlocation-routequery.html">RouteQuery</a> type is used to provide query parameters to a <a href="qml-qtlocation-routemodel.html">RouteModel</a>. <a href="#details">More...</a></p> <!-- @@@RouteQuery --> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import QtLocation 5.11</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign"> QtLocation 5.5</td></tr></table></div><ul> <li><a href="qml-qtlocation-routequery-members.html">List of all members, including inherited members</a></li> </ul> <a name="properties"></a> <h2 id="properties">Properties</h2> <ul> <li class="fn"><b><b><a href="qml-qtlocation-routequery.html#excludedAreas-prop">excludedAreas</a></b></b> : list<georectangle></li> <li class="fn"><b><b><a href="qml-qtlocation-routequery.html#extraParameters-prop">extraParameters</a></b></b> : VariantMap</li> <li class="fn"><b><b><a href="qml-qtlocation-routequery.html#featureTypes-prop">featureTypes</a></b></b> : QList<FeatureType></li> <li class="fn"><b><b><a href="qml-qtlocation-routequery.html#maneuverDetail-prop">maneuverDetail</a></b></b> : enumeration</li> <li class="fn"><b><b><a href="qml-qtlocation-routequery.html#numberAlternativeRoutes-prop">numberAlternativeRoutes</a></b></b> : int</li> <li class="fn"><b><b><a href="qml-qtlocation-routequery.html#routeOptimizations-prop">routeOptimizations</a></b></b> : enumeration</li> <li class="fn"><b><b><a href="qml-qtlocation-routequery.html#segmentDetail-prop">segmentDetail</a></b></b> : enumeration</li> <li class="fn"><b><b><a href="qml-qtlocation-routequery.html#travelModes-prop">travelModes</a></b></b> : enumeration</li> <li class="fn"><b><b><a href="qml-qtlocation-routequery.html#waypoints-prop">waypoints</a></b></b> : list<coordinate></li> </ul> <a name="methods"></a> <h2 id="methods">Methods</h2> <ul> <li class="fn">void <b><b><a href="qml-qtlocation-routequery.html#addExcludedArea-method">addExcludedArea</a></b></b>(<i>georectangle</i>)</li> <li class="fn">void <b><b><a href="qml-qtlocation-routequery.html#addWaypoint-method">addWaypoint</a></b></b>(<i>coordinate</i>)</li> <li class="fn">void <b><b><a href="qml-qtlocation-routequery.html#clearExcludedAreas-method">clearExcludedAreas</a></b></b>()</li> <li class="fn">void <b><b><a href="qml-qtlocation-routequery.html#clearWaypoints-method">clearWaypoints</a></b></b>()</li> <li class="fn">FeatureWeight <b><b><a href="qml-qtlocation-routequery.html#featureWeight-method">featureWeight</a></b></b>(FeatureType <i>featureType</i>)</li> <li class="fn">void <b><b><a href="qml-qtlocation-routequery.html#removeExcludedArea-method">removeExcludedArea</a></b></b>(<i>georectangle</i>)</li> <li class="fn">void <b><b><a href="qml-qtlocation-routequery.html#removeWaypoint-method">removeWaypoint</a></b></b>(<i>coordinate</i>)</li> <li class="fn">void <b><b><a href="qml-qtlocation-routequery.html#resetFeatureWeights-method">resetFeatureWeights</a></b></b>()</li> <li class="fn">void <b><b><a href="qml-qtlocation-routequery.html#setFeatureWeight-method">setFeatureWeight</a></b></b>(<i>FeatureType</i>, <i>FeatureWeight</i>)</li> <li class="fn">list<Waypoint> <b><b><a href="qml-qtlocation-routequery.html#waypointObjects-method">waypointObjects</a></b></b>()</li> </ul> <!-- $$$RouteQuery-description --> <a name="details"></a> <h2 id="details">Detailed Description</h2> <p>A <a href="qml-qtlocation-routequery.html">RouteQuery</a> is used to pack all the parameters necessary to make a request to a routing service, which can then populate the contents of a <a href="qml-qtlocation-routemodel.html">RouteModel</a>.</p> <p>These parameters describe key details of the route, such as <a href="qml-qtlocation-routequery.html#waypoints-prop">waypoints</a> to pass through, <a href="qml-qtlocation-routequery.html#excludedAreas-prop">excludedAreas</a> to avoid, the <a href="qml-qtlocation-routequery.html#travelModes-prop">travelModes</a> in use, as well as detailed preferences on how to optimize the route and what features to prefer or avoid along the path (such as toll roads, highways, etc).</p> <p><a href="qml-qtlocation-routequery.html">RouteQuery</a> objects are used exclusively to fill out the value of a <a href="qml-qtlocation-routemodel.html">RouteModel</a>'s <a href="qml-qtlocation-routemodel.html#query-prop">query</a> property, which can then begin the retrieval process to populate the model.</p> <p>Some plugins might allow or require specific parameters to operate. In order to specify these plugin-specific parameters, MapParameter elements can be nested inside a <a href="qml-qtlocation-routequery.html">RouteQuery</a>.</p> <a name="example-usage"></a> <h3 >Example Usage</h3> <p>The following snipped shows an incomplete example of creating a <a href="qml-qtlocation-routequery.html">RouteQuery</a> object and setting it as the value of a <a href="qml-qtlocation-routemodel.html">RouteModel</a>'s <a href="qml-qtlocation-routemodel.html#query-prop">query</a> property.</p> <pre class="cpp"> RouteQuery { id: aQuery } RouteModel { query: aQuery autoUpdate: <span class="keyword">false</span> } </pre> <p>For a more complete example, see the documentation for the <a href="qml-qtlocation-routemodel.html">RouteModel</a> type, and the Mapviewer example.</p> <p><b>See also </b><a href="qml-qtlocation-routemodel.html">RouteModel</a>.</p> <!-- @@@RouteQuery --> <h2>Property Documentation</h2> <!-- $$$excludedAreas --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="excludedAreas-prop"> <td class="tblQmlPropNode"><p> <a name="excludedAreas-prop"></a><span class="name">excludedAreas</span> : <span class="type"><a href="../qtqml/qml-list.html">list</a></span><<span class="type"><a href="../qtpositioning/qml-georectangle.html">georectangle</a></span>></p></td></tr> </table></div> </div><div class="qmldoc"><p>Areas that the route must not cross.</p> <p>Excluded areas can be set as part of the <a href="qml-qtlocation-routequery.html">RouteQuery</a> type declaration or dynamically with the functions provided.</p> <p><b>See also </b><a href="qml-qtlocation-routequery.html#addExcludedArea-method">addExcludedArea</a>, <a href="qml-qtlocation-routequery.html#removeExcludedArea-method">removeExcludedArea</a>, and <a href="qml-qtlocation-routequery.html#clearExcludedAreas-method">clearExcludedAreas</a>.</p> </div></div><!-- @@@excludedAreas --> <br/> <!-- $$$extraParameters --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="extraParameters-prop"> <td class="tblQmlPropNode"><p> <a name="extraParameters-prop"></a><span class="qmlreadonly">[read-only] </span><span class="name">extraParameters</span> : <span class="type">VariantMap</span></p></td></tr> </table></div> </div><div class="qmldoc"><p>The route query extra parameters. This property is read only. If the query is defined by the user, these can be set by using MapParameters. If the route query comes from the engine via signals, the query is intended to be read-only.</p> <p>This property was introduced in Qt 5.11.</p> </div></div><!-- @@@extraParameters --> <br/> <!-- $$$featureTypes --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="featureTypes-prop"> <td class="tblQmlPropNode"><p> <a name="featureTypes-prop"></a><span class="name">featureTypes</span> : <span class="type">QList</span><<span class="type">FeatureType</span>></p></td></tr> </table></div> </div><div class="qmldoc"><p>List of features that will be considered when planning the route. Features with a weight of NeutralFeatureWeight will not be returned.</p> <ul> <li><a href="qml-qtlocation-routequery.html">RouteQuery</a>.NoFeature - No features will be taken into account when planning the route</li> <li><a href="qml-qtlocation-routequery.html">RouteQuery</a>.TollFeature - Consider tollways when planning the route</li> <li><a href="qml-qtlocation-routequery.html">RouteQuery</a>.HighwayFeature - Consider highways when planning the route</li> <li><a href="qml-qtlocation-routequery.html">RouteQuery</a>.PublicTransitFeature - Consider public transit when planning the route</li> <li><a href="qml-qtlocation-routequery.html">RouteQuery</a>.FerryFeature - Consider ferries when planning the route</li> <li><a href="qml-qtlocation-routequery.html">RouteQuery</a>.TunnelFeature - Consider tunnels when planning the route</li> <li><a href="qml-qtlocation-routequery.html">RouteQuery</a>.DirtRoadFeature - Consider dirt roads when planning the route</li> <li><a href="qml-qtlocation-routequery.html">RouteQuery</a>.ParksFeature - Consider parks when planning the route</li> <li><a href="qml-qtlocation-routequery.html">RouteQuery</a>.MotorPoolLaneFeature - Consider motor pool lanes when planning the route</li> <li><a href="qml-qtlocation-routequery.html">RouteQuery</a>.TrafficFeature - Consider traffic when planning the route</li> </ul> <p><b>See also </b><a href="qml-qtlocation-routequery.html#setFeatureWeight-method">setFeatureWeight</a> and <a href="qml-qtlocation-routequery.html#featureWeight-method">featureWeight</a>.</p> </div></div><!-- @@@featureTypes --> <br/> <!-- $$$maneuverDetail --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="maneuverDetail-prop"> <td class="tblQmlPropNode"><p> <a name="maneuverDetail-prop"></a><span class="name">maneuverDetail</span> : <span class="type"><a href="../qtqml/qml-enumeration.html">enumeration</a></span></p></td></tr> </table></div> </div><div class="qmldoc"><p>The level of detail which will be used in the representation of routing maneuvers.</p> <div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tbldscr">Description</th></tr> <tr><td class="topAlign"><code>RouteQuery.NoManeuvers</code></td><td class="topAlign">No maneuvers should be included with the route</td></tr> <tr><td class="topAlign"><code>RouteQuery.BasicManeuvers</code></td><td class="topAlign">Basic maneuvers will be included with the route</td></tr> </table></div> <p>The default value is <code>RouteQuery.BasicManeuvers</code>.</p> </div></div><!-- @@@maneuverDetail --> <br/> <!-- $$$numberAlternativeRoutes --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="numberAlternativeRoutes-prop"> <td class="tblQmlPropNode"><p> <a name="numberAlternativeRoutes-prop"></a><span class="name">numberAlternativeRoutes</span> : <span class="type"><a href="../qtqml/qml-int.html">int</a></span></p></td></tr> </table></div> </div><div class="qmldoc"><p>The number of alternative routes requested when requesting routes. The default value is 0.</p> </div></div><!-- @@@numberAlternativeRoutes --> <br/> <!-- $$$routeOptimizations --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="routeOptimizations-prop"> <td class="tblQmlPropNode"><p> <a name="routeOptimizations-prop"></a><span class="name">routeOptimizations</span> : <span class="type"><a href="../qtqml/qml-enumeration.html">enumeration</a></span></p></td></tr> </table></div> </div><div class="qmldoc"><p>The route optimizations which should be considered during the planning of the route. Values can be combined with OR ('|') -operator.</p> <div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tbldscr">Description</th></tr> <tr><td class="topAlign"><code>RouteQuery.ShortestRoute</code></td><td class="topAlign">Minimize the length of the journey</td></tr> <tr><td class="topAlign"><code>RouteQuery.FastestRoute</code></td><td class="topAlign">Minimize the traveling time for the journey</td></tr> <tr><td class="topAlign"><code>RouteQuery.MostEconomicRoute</code></td><td class="topAlign">Minimize the cost of the journey</td></tr> <tr><td class="topAlign"><code>RouteQuery.MostScenicRoute</code></td><td class="topAlign">Maximize the scenic potential of the journey</td></tr> </table></div> <p>The default value is <code>RouteQuery.FastestRoute</code>.</p> </div></div><!-- @@@routeOptimizations --> <br/> <!-- $$$segmentDetail --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="segmentDetail-prop"> <td class="tblQmlPropNode"><p> <a name="segmentDetail-prop"></a><span class="name">segmentDetail</span> : <span class="type"><a href="../qtqml/qml-enumeration.html">enumeration</a></span></p></td></tr> </table></div> </div><div class="qmldoc"><p>The level of detail which will be used in the representation of routing segments.</p> <div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tbldscr">Description</th></tr> <tr><td class="topAlign"><code>RouteQuery.NoSegmentData</code></td><td class="topAlign">No segment data should be included with the route</td></tr> <tr><td class="topAlign"><code>RouteQuery.BasicSegmentData</code></td><td class="topAlign">Basic segment data will be included with the route</td></tr> </table></div> <p>The default value is <code>RouteQuery.BasicSegmentData</code>.</p> </div></div><!-- @@@segmentDetail --> <br/> <!-- $$$travelModes --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="travelModes-prop"> <td class="tblQmlPropNode"><p> <a name="travelModes-prop"></a><span class="name">travelModes</span> : <span class="type"><a href="../qtqml/qml-enumeration.html">enumeration</a></span></p></td></tr> </table></div> </div><div class="qmldoc"><p>The travel modes which should be considered during the planning of the route. Values can be combined with OR ('|') -operator.</p> <div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tbldscr">Description</th></tr> <tr><td class="topAlign"><code>RouteQuery.CarTravel</code></td><td class="topAlign">The route will be optimized for someone who is driving a car</td></tr> <tr><td class="topAlign"><code>RouteQuery.PedestrianTravel</code></td><td class="topAlign">The route will be optimized for someone who is walking</td></tr> <tr><td class="topAlign"><code>RouteQuery.BicycleTravel</code></td><td class="topAlign">The route will be optimized for someone who is riding a bicycle</td></tr> <tr><td class="topAlign"><code>RouteQuery.PublicTransit</code></td><td class="topAlign">Travel The route will be optimized for someone who is making use of public transit</td></tr> <tr><td class="topAlign"><code>RouteQuery.TruckTravel</code></td><td class="topAlign">The route will be optimized for someone who is driving a truck</td></tr> </table></div> <p>The default value is <code>RouteQuery.CarTravel</code>.</p> </div></div><!-- @@@travelModes --> <br/> <!-- $$$waypoints --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="waypoints-prop"> <td class="tblQmlPropNode"><p> <a name="waypoints-prop"></a><span class="name">waypoints</span> : <span class="type"><a href="../qtqml/qml-list.html">list</a></span><<span class="type"><a href="../qtpositioning/qml-coordinate.html">coordinate</a></span>></p></td></tr> </table></div> </div><div class="qmldoc"><p>The coordinates of the waypoints for the desired route. The waypoints should be given in order from origin to destination. Two or more coordinates are needed.</p> <p>Waypoints can be set as part of the <a href="qml-qtlocation-routequery.html">RouteQuery</a> type declaration or dynamically with the functions provided.</p> <p>When setting this property to a list of waypoints, each waypoint can be either a <a href="../qtpositioning/qml-coordinate.html">coordinate</a> or a <a href="qml-qtlocation-waypoint.html">Waypoint</a>, interchangeably. If a <a href="../qtpositioning/qml-coordinate.html">coordinate</a> is passed, it will be internally converted to a <a href="qml-qtlocation-waypoint.html">Waypoint</a>.</p> <p>This property, however, always contains a list of coordinates.</p> <p><b>See also </b><a href="qml-qtlocation-routequery.html#waypointObjects-method">waypointObjects</a>, <a href="qml-qtlocation-routequery.html#addWaypoint-method">addWaypoint</a>, <a href="qml-qtlocation-routequery.html#removeWaypoint-method">removeWaypoint</a>, and <a href="qml-qtlocation-routequery.html#clearWaypoints-method">clearWaypoints</a>.</p> </div></div><!-- @@@waypoints --> <br/> <h2>Method Documentation</h2> <!-- $$$addExcludedArea --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="addExcludedArea-method"> <td class="tblQmlFuncNode"><p> <a name="addExcludedArea-method"></a><span class="type">void</span> <span class="name">addExcludedArea</span>(<i>georectangle</i>)</p></td></tr> </table></div> </div><div class="qmldoc"><p>Adds the given area to excluded areas (areas that the route must not cross). Same area can only be added once.</p> <p><b>See also </b><a href="qml-qtlocation-routequery.html#removeExcludedArea-method">removeExcludedArea</a> and <a href="qml-qtlocation-routequery.html#clearExcludedAreas-method">clearExcludedAreas</a>.</p> </div></div><!-- @@@addExcludedArea --> <br/> <!-- $$$addWaypoint --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="addWaypoint-method"> <td class="tblQmlFuncNode"><p> <a name="addWaypoint-method"></a><span class="type">void</span> <span class="name">addWaypoint</span>(<i>coordinate</i>)</p></td></tr> </table></div> </div><div class="qmldoc"><p>Appends a coordinate to the list of waypoints. Same coordinate can be set multiple times. The <i>coordinate</i> argument can be a <a href="../qtpositioning/qml-coordinate.html">coordinate</a> or a <a href="qml-qtlocation-waypoint.html">Waypoint</a>. If a <a href="../qtpositioning/qml-coordinate.html">coordinate</a> is used, it will be internally converted to a <a href="qml-qtlocation-waypoint.html">Waypoint</a>.</p> <p><b>See also </b><a href="qml-qtlocation-routequery.html#removeWaypoint-method">removeWaypoint</a> and <a href="qml-qtlocation-routequery.html#clearWaypoints-method">clearWaypoints</a>.</p> </div></div><!-- @@@addWaypoint --> <br/> <!-- $$$clearExcludedAreas --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="clearExcludedAreas-method"> <td class="tblQmlFuncNode"><p> <a name="clearExcludedAreas-method"></a><span class="type">void</span> <span class="name">clearExcludedAreas</span>()</p></td></tr> </table></div> </div><div class="qmldoc"><p>Clears all excluded areas (areas that the route must not cross).</p> <p><b>See also </b><a href="qml-qtlocation-routequery.html#addExcludedArea-method">addExcludedArea</a> and <a href="qml-qtlocation-routequery.html#removeExcludedArea-method">removeExcludedArea</a>.</p> </div></div><!-- @@@clearExcludedAreas --> <br/> <!-- $$$clearWaypoints --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="clearWaypoints-method"> <td class="tblQmlFuncNode"><p> <a name="clearWaypoints-method"></a><span class="type">void</span> <span class="name">clearWaypoints</span>()</p></td></tr> </table></div> </div><div class="qmldoc"><p>Clears all waypoints.</p> <p><b>See also </b><a href="qml-qtlocation-routequery.html#removeWaypoint-method">removeWaypoint</a> and <a href="qml-qtlocation-routequery.html#addWaypoint-method">addWaypoint</a>.</p> </div></div><!-- @@@clearWaypoints --> <br/> <!-- $$$featureWeight --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="featureWeight-method"> <td class="tblQmlFuncNode"><p> <a name="featureWeight-method"></a><span class="type">FeatureWeight</span> <span class="name">featureWeight</span>(<span class="type">FeatureType</span> <i>featureType</i>)</p></td></tr> </table></div> </div><div class="qmldoc"><p>Gets the weight for the <i>featureType</i>.</p> <p><b>See also </b><a href="qml-qtlocation-routequery.html#featureTypes-prop">featureTypes</a>, <a href="qml-qtlocation-routequery.html#setFeatureWeight-method">setFeatureWeight</a>, and <a href="qml-qtlocation-routequery.html#resetFeatureWeights-method">resetFeatureWeights</a>.</p> </div></div><!-- @@@featureWeight --> <br/> <!-- $$$removeExcludedArea --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="removeExcludedArea-method"> <td class="tblQmlFuncNode"><p> <a name="removeExcludedArea-method"></a><span class="type">void</span> <span class="name">removeExcludedArea</span>(<i>georectangle</i>)</p></td></tr> </table></div> </div><div class="qmldoc"><p>Removes the given area to excluded areas (areas that the route must not cross).</p> <p><b>See also </b><a href="qml-qtlocation-routequery.html#addExcludedArea-method">addExcludedArea</a> and <a href="qml-qtlocation-routequery.html#clearExcludedAreas-method">clearExcludedAreas</a>.</p> </div></div><!-- @@@removeExcludedArea --> <br/> <!-- $$$removeWaypoint --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="removeWaypoint-method"> <td class="tblQmlFuncNode"><p> <a name="removeWaypoint-method"></a><span class="type">void</span> <span class="name">removeWaypoint</span>(<i>coordinate</i>)</p></td></tr> </table></div> </div><div class="qmldoc"><p>Removes the given from the list of waypoints. In case same coordinate appears multiple times, the most recently added coordinate instance is removed.</p> <p><b>See also </b><a href="qml-qtlocation-routequery.html#addWaypoint-method">addWaypoint</a> and <a href="qml-qtlocation-routequery.html#clearWaypoints-method">clearWaypoints</a>.</p> </div></div><!-- @@@removeWaypoint --> <br/> <!-- $$$resetFeatureWeights --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="resetFeatureWeights-method"> <td class="tblQmlFuncNode"><p> <a name="resetFeatureWeights-method"></a><span class="type">void</span> <span class="name">resetFeatureWeights</span>()</p></td></tr> </table></div> </div><div class="qmldoc"><p>Resets all feature weights to their default state (NeutralFeatureWeight).</p> <p><b>See also </b><a href="qml-qtlocation-routequery.html#featureTypes-prop">featureTypes</a>, <a href="qml-qtlocation-routequery.html#setFeatureWeight-method">setFeatureWeight</a>, and <a href="qml-qtlocation-routequery.html#featureWeight-method">featureWeight</a>.</p> </div></div><!-- @@@resetFeatureWeights --> <br/> <!-- $$$setFeatureWeight --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="setFeatureWeight-method"> <td class="tblQmlFuncNode"><p> <a name="setFeatureWeight-method"></a><span class="type">void</span> <span class="name">setFeatureWeight</span>(<i>FeatureType</i>, <i>FeatureWeight</i>)</p></td></tr> </table></div> </div><div class="qmldoc"><p>Defines the weight to associate with a feature during the planning of a route.</p> <p>Following lists the possible feature weights:</p> <div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tbldscr">Description</th></tr> <tr><td class="topAlign"><code>RouteQuery.NeutralFeatureWeight</code></td><td class="topAlign">The presence or absence of the feature will not affect the planning of the route</td></tr> <tr><td class="topAlign"><code>RouteQuery.PreferFeatureWeight</code></td><td class="topAlign">Routes which contain the feature will be preferred over those that do not</td></tr> <tr><td class="topAlign"><code>RouteQuery.RequireFeatureWeight</code></td><td class="topAlign">Only routes which contain the feature will be considered, otherwise no route will be returned</td></tr> <tr><td class="topAlign"><code>RouteQuery.AvoidFeatureWeight</code></td><td class="topAlign">Routes which do not contain the feature will be preferred over those that do</td></tr> <tr><td class="topAlign"><code>RouteQuery.DisallowFeatureWeight</code></td><td class="topAlign">Only routes which do not contain the feature will be considered, otherwise no route will be returned</td></tr> </table></div> <p><b>See also </b><a href="qml-qtlocation-routequery.html#featureTypes-prop">featureTypes</a>, <a href="qml-qtlocation-routequery.html#resetFeatureWeights-method">resetFeatureWeights</a>, and <a href="qml-qtlocation-routequery.html#featureWeight-method">featureWeight</a>.</p> </div></div><!-- @@@setFeatureWeight --> <br/> <!-- $$$waypointObjects --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="waypointObjects-method"> <td class="tblQmlFuncNode"><p> <a name="waypointObjects-method"></a><span class="type"><a href="../qtqml/qml-list.html">list</a></span><<span class="type"><a href="qml-qtlocation-waypoint.html">Waypoint</a></span>> <span class="name">waypointObjects</span>()</p></td></tr> </table></div> </div><div class="qmldoc"><p>This method can be used to retrieve the list of Waypoint objects relative to <a href="qml-qtlocation-routequery.html#waypoints-prop">RouteQuery::waypoints</a>.</p> <p><b>See also </b>waypointObjects, <a href="qml-qtlocation-routequery.html#addWaypoint-method">addWaypoint</a>, <a href="qml-qtlocation-routequery.html#removeWaypoint-method">removeWaypoint</a>, and <a href="qml-qtlocation-routequery.html#clearWaypoints-method">clearWaypoints</a>.</p> </div></div><!-- @@@waypointObjects --> <br/> </div> </div> </div> </div> </div> <div class="footer"> <p> <acronym title="Copyright">©</acronym> 2018 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>