Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-release > by-pkgid > 50facae208d4a6f280e44a513b104320 > files > 912

qt-mobility-doc-1.2.0-13.mga5.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qgeorouterequest.cpp -->
  <title>Qt Mobility 1.2: QGeoRouteRequest Class Reference</title>
  <link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="content"> 
    <a href="index.html" class="qtref"><span>QtMobility Reference Documentation</span></a>
  </div>
  <div class="breadcrumb toolblock">
    <ul>
      <li class="first"><a href="index.html">Home</a></li>
      <!--  Breadcrumbs go here -->
<li><a href="modules.html">Modules</a></li>
<li><a href="qtlocation.html">QtLocation</a></li>
<li>QGeoRouteRequest</li>
    </ul>
  </div>
</div>
<div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-types">Public Types</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">QGeoRouteRequest Class Reference</h1>
<!-- $$$QGeoRouteRequest-brief -->
<p>The QGeoRouteRequest class represents the parameters and restrictions which define a request for routing information. <a href="#details">More...</a></p>
<!-- @@@QGeoRouteRequest -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QGeoRouteRequest&gt;</span></pre><p>This class was introduced in Qt Mobility 1.1.</p>
<ul>
<li><a href="qgeorouterequest-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-types"></a>
<h2>Public Types</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qgeorouterequest.html#FeatureType-enum">FeatureType</a></b> { NoFeature, TollFeature, HighwayFeature, PublicTransitFeature, ..., MotorPoolLaneFeature }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> flags </td><td class="memItemRight bottomAlign"><b><a href="qgeorouterequest.html#FeatureType-enum">FeatureTypes</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qgeorouterequest.html#FeatureWeight-enum">FeatureWeight</a></b> { NeutralFeatureWeight, PreferFeatureWeight, RequireFeatureWeight, AvoidFeatureWeight, DisallowFeatureWeight }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> flags </td><td class="memItemRight bottomAlign"><b><a href="qgeorouterequest.html#FeatureWeight-enum">FeatureWeights</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qgeorouterequest.html#ManeuverDetail-enum">ManeuverDetail</a></b> { NoManeuvers, BasicManeuvers }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> flags </td><td class="memItemRight bottomAlign"><b><a href="qgeorouterequest.html#ManeuverDetail-enum">ManeuverDetails</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qgeorouterequest.html#RouteOptimization-enum">RouteOptimization</a></b> { ShortestRoute, FastestRoute, MostEconomicRoute, MostScenicRoute }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> flags </td><td class="memItemRight bottomAlign"><b><a href="qgeorouterequest.html#RouteOptimization-enum">RouteOptimizations</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qgeorouterequest.html#SegmentDetail-enum">SegmentDetail</a></b> { NoSegmentData, BasicSegmentData }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> flags </td><td class="memItemRight bottomAlign"><b><a href="qgeorouterequest.html#SegmentDetail-enum">SegmentDetails</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qgeorouterequest.html#TravelMode-enum">TravelMode</a></b> { CarTravel, PedestrianTravel, BicycleTravel, PublicTransitTravel, TruckTravel }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> flags </td><td class="memItemRight bottomAlign"><b><a href="qgeorouterequest.html#TravelMode-enum">TravelModes</a></b></td></tr>
</table>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qgeorouterequest.html#QGeoRouteRequest">QGeoRouteRequest</a></b> ( const QList&lt;QGeoCoordinate&gt; &amp; <i>waypoints</i> = QList&lt;QGeoCoordinate&gt; () )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qgeorouterequest.html#QGeoRouteRequest-2">QGeoRouteRequest</a></b> ( const QGeoCoordinate &amp; <i>origin</i>, const QGeoCoordinate &amp; <i>destination</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qgeorouterequest.html#QGeoRouteRequest-3">QGeoRouteRequest</a></b> ( const QGeoRouteRequest &amp; <i>other</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qgeorouterequest.html#dtor.QGeoRouteRequest">~QGeoRouteRequest</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QList&lt;QGeoBoundingBox&gt; </td><td class="memItemRight bottomAlign"><b><a href="qgeorouterequest.html#excludeAreas">excludeAreas</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QList&lt;FeatureType&gt; </td><td class="memItemRight bottomAlign"><b><a href="qgeorouterequest.html#featureTypes">featureTypes</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> FeatureWeight </td><td class="memItemRight bottomAlign"><b><a href="qgeorouterequest.html#featureWeight">featureWeight</a></b> ( FeatureType <i>featureType</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> ManeuverDetail </td><td class="memItemRight bottomAlign"><b><a href="qgeorouterequest.html#maneuverDetail">maneuverDetail</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qgeorouterequest.html#numberAlternativeRoutes">numberAlternativeRoutes</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> RouteOptimizations </td><td class="memItemRight bottomAlign"><b><a href="qgeorouterequest.html#routeOptimization">routeOptimization</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> SegmentDetail </td><td class="memItemRight bottomAlign"><b><a href="qgeorouterequest.html#segmentDetail">segmentDetail</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgeorouterequest.html#setExcludeAreas">setExcludeAreas</a></b> ( const QList&lt;QGeoBoundingBox&gt; &amp; <i>areas</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgeorouterequest.html#setFeatureWeight">setFeatureWeight</a></b> ( FeatureType <i>featureType</i>, FeatureWeight <i>featureWeight</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgeorouterequest.html#setManeuverDetail">setManeuverDetail</a></b> ( ManeuverDetail <i>maneuverDetail</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgeorouterequest.html#setNumberAlternativeRoutes">setNumberAlternativeRoutes</a></b> ( int <i>alternatives</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgeorouterequest.html#setRouteOptimization">setRouteOptimization</a></b> ( RouteOptimizations <i>optimization</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgeorouterequest.html#setSegmentDetail">setSegmentDetail</a></b> ( SegmentDetail <i>segmentDetail</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgeorouterequest.html#setTravelModes">setTravelModes</a></b> ( TravelModes <i>travelModes</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgeorouterequest.html#setWaypoints">setWaypoints</a></b> ( const QList&lt;QGeoCoordinate&gt; &amp; <i>waypoints</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> TravelModes </td><td class="memItemRight bottomAlign"><b><a href="qgeorouterequest.html#travelModes">travelModes</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QList&lt;QGeoCoordinate&gt; </td><td class="memItemRight bottomAlign"><b><a href="qgeorouterequest.html#waypoints">waypoints</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qgeorouterequest.html#operator-not-eq">operator!=</a></b> ( const QGeoRouteRequest &amp; <i>other</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGeoRouteRequest &amp; </td><td class="memItemRight bottomAlign"><b><a href="qgeorouterequest.html#operator-eq">operator=</a></b> ( const QGeoRouteRequest &amp; <i>other</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qgeorouterequest.html#operator-eq-eq">operator==</a></b> ( const QGeoRouteRequest &amp; <i>other</i> ) const</td></tr>
</table>
<a name="details"></a>
<!-- $$$QGeoRouteRequest-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QGeoRouteRequest class represents the parameters and restrictions which define a request for routing information.</p>
<p>The default state of a QGeoRouteRequest instance will result in a request for basic route segment and navigation maneuvers describing the fastest route by car which covers the given waypoints.</p>
<p>There may be signifcant variation in the features supported by different providers of routing information, or even in the features supported by the same provider if different levels of authorization are used.</p>
<p>There are several functions in <a href="qgeoroutingmanager.html">QGeoRoutingManager</a> which can be used to check which features are supported with the current provider and authorization level.</p>
</div>
<p><b>See also </b><a href="qgeoroutingmanager.html">QGeoRoutingManager</a>.</p>
<!-- @@@QGeoRouteRequest -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$FeatureType$$$NoFeature$$$TollFeature$$$HighwayFeature$$$PublicTransitFeature$$$FerryFeature$$$TunnelFeature$$$DirtRoadFeature$$$ParksFeature$$$MotorPoolLaneFeature -->
<h3 class="flags"><a name="FeatureType-enum"></a>enum QGeoRouteRequest::<span class="name">FeatureType</span><br/>flags QGeoRouteRequest::<span class="name">FeatureTypes</span></h3>
<p>Defines a feature which is important to the planning of a route.</p>
<p>These values will be used in combination with <a href="qgeorouterequest.html#FeatureWeight-enum">QGeoRouteRequest::FeatureWeight</a> to determine if they should or should not be part of the route.</p>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>QGeoRouteRequest::NoFeature</tt></td><td class="topAlign"><tt>0x00000000</tt></td><td class="topAlign">Used by <a href="qgeoroutingmanager.html#supportedFeatureTypes">QGeoRoutingManager::supportedFeatureTypes</a>() to indicate that no features will be taken into account when planning the route.</td></tr>
<tr><td class="topAlign"><tt>QGeoRouteRequest::TollFeature</tt></td><td class="topAlign"><tt>0x00000001</tt></td><td class="topAlign">Consdier tollways when planning the route.</td></tr>
<tr><td class="topAlign"><tt>QGeoRouteRequest::HighwayFeature</tt></td><td class="topAlign"><tt>0x00000002</tt></td><td class="topAlign">Consider highways when planning the route.</td></tr>
<tr><td class="topAlign"><tt>QGeoRouteRequest::PublicTransitFeature</tt></td><td class="topAlign"><tt>0x00000004</tt></td><td class="topAlign">Consider public transit when planning the route.</td></tr>
<tr><td class="topAlign"><tt>QGeoRouteRequest::FerryFeature</tt></td><td class="topAlign"><tt>0x00000008</tt></td><td class="topAlign">Consider ferries when planning the route.</td></tr>
<tr><td class="topAlign"><tt>QGeoRouteRequest::TunnelFeature</tt></td><td class="topAlign"><tt>0x00000010</tt></td><td class="topAlign">Consider tunnels when planning the route.</td></tr>
<tr><td class="topAlign"><tt>QGeoRouteRequest::DirtRoadFeature</tt></td><td class="topAlign"><tt>0x00000020</tt></td><td class="topAlign">Consider dirt roads when planning the route.</td></tr>
<tr><td class="topAlign"><tt>QGeoRouteRequest::ParksFeature</tt></td><td class="topAlign"><tt>0x00000040</tt></td><td class="topAlign">Consider parks when planning the route.</td></tr>
<tr><td class="topAlign"><tt>QGeoRouteRequest::MotorPoolLaneFeature</tt></td><td class="topAlign"><tt>0x00000080</tt></td><td class="topAlign">Consider motor pool lanes when planning the route.</td></tr>
</table>
<p>The FeatureTypes type is a typedef for <a href="qflags.html">QFlags</a>&lt;FeatureType&gt;. It stores an OR combination of FeatureType values.</p>
<!-- @@@FeatureType -->
<!-- $$$FeatureWeight$$$NeutralFeatureWeight$$$PreferFeatureWeight$$$RequireFeatureWeight$$$AvoidFeatureWeight$$$DisallowFeatureWeight -->
<h3 class="flags"><a name="FeatureWeight-enum"></a>enum QGeoRouteRequest::<span class="name">FeatureWeight</span><br/>flags QGeoRouteRequest::<span class="name">FeatureWeights</span></h3>
<p>Defines the weight to associate with a feature during the planning of a route.</p>
<p>These values will be used in combination with QGeoRouteRequest::Feature to determine if they should or should not be part of the route.</p>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>QGeoRouteRequest::NeutralFeatureWeight</tt></td><td class="topAlign"><tt>0x00000000</tt></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"><tt>QGeoRouteRequest::PreferFeatureWeight</tt></td><td class="topAlign"><tt>0x00000001</tt></td><td class="topAlign">Routes which contain the feature will be preferred over those that do not.</td></tr>
<tr><td class="topAlign"><tt>QGeoRouteRequest::RequireFeatureWeight</tt></td><td class="topAlign"><tt>0x00000002</tt></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"><tt>QGeoRouteRequest::AvoidFeatureWeight</tt></td><td class="topAlign"><tt>0x00000004</tt></td><td class="topAlign">Routes which do not contain the feature will be preferred over those that do.</td></tr>
<tr><td class="topAlign"><tt>QGeoRouteRequest::DisallowFeatureWeight</tt></td><td class="topAlign"><tt>0x00000008</tt></td><td class="topAlign">Only routes which do not contain the feature will be considered, otherwise no route will be returned.</td></tr>
</table>
<p>The FeatureWeights type is a typedef for <a href="qflags.html">QFlags</a>&lt;FeatureWeight&gt;. It stores an OR combination of FeatureWeight values.</p>
<!-- @@@FeatureWeight -->
<!-- $$$ManeuverDetail$$$NoManeuvers$$$BasicManeuvers -->
<h3 class="flags"><a name="ManeuverDetail-enum"></a>enum QGeoRouteRequest::<span class="name">ManeuverDetail</span><br/>flags QGeoRouteRequest::<span class="name">ManeuverDetails</span></h3>
<p>Defines the amount of maneuver information that should be included with the route.</p>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>QGeoRouteRequest::NoManeuvers</tt></td><td class="topAlign"><tt>0x0000</tt></td><td class="topAlign">No maneuvers should be included with the route.</td></tr>
<tr><td class="topAlign"><tt>QGeoRouteRequest::BasicManeuvers</tt></td><td class="topAlign"><tt>0x0001</tt></td><td class="topAlign">Basic manevuers will be included with the route. This will include <a href="qgeomaneuver.html#instructionText">QGeoManeuver::instructionText</a>().</td></tr>
</table>
<p>The ManeuverDetails type is a typedef for <a href="qflags.html">QFlags</a>&lt;ManeuverDetail&gt;. It stores an OR combination of ManeuverDetail values.</p>
<!-- @@@ManeuverDetail -->
<!-- $$$RouteOptimization$$$ShortestRoute$$$FastestRoute$$$MostEconomicRoute$$$MostScenicRoute -->
<h3 class="flags"><a name="RouteOptimization-enum"></a>enum QGeoRouteRequest::<span class="name">RouteOptimization</span><br/>flags QGeoRouteRequest::<span class="name">RouteOptimizations</span></h3>
<p>Defines the type of optimization which is applied to the planning of the route.</p>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>QGeoRouteRequest::ShortestRoute</tt></td><td class="topAlign"><tt>0x0001</tt></td><td class="topAlign">Minimize the length of the journey.</td></tr>
<tr><td class="topAlign"><tt>QGeoRouteRequest::FastestRoute</tt></td><td class="topAlign"><tt>0x0002</tt></td><td class="topAlign">Minimize the traveling time for the journey.</td></tr>
<tr><td class="topAlign"><tt>QGeoRouteRequest::MostEconomicRoute</tt></td><td class="topAlign"><tt>0x0004</tt></td><td class="topAlign">Minimize the cost of the journey.</td></tr>
<tr><td class="topAlign"><tt>QGeoRouteRequest::MostScenicRoute</tt></td><td class="topAlign"><tt>0x0008</tt></td><td class="topAlign">Maximize the scenic potential of the journey.</td></tr>
</table>
<p>The RouteOptimizations type is a typedef for <a href="qflags.html">QFlags</a>&lt;RouteOptimization&gt;. It stores an OR combination of RouteOptimization values.</p>
<!-- @@@RouteOptimization -->
<!-- $$$SegmentDetail$$$NoSegmentData$$$BasicSegmentData -->
<h3 class="flags"><a name="SegmentDetail-enum"></a>enum QGeoRouteRequest::<span class="name">SegmentDetail</span><br/>flags QGeoRouteRequest::<span class="name">SegmentDetails</span></h3>
<p>Defines the amount of route segment information that shoudl be included with the route.</p>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>QGeoRouteRequest::NoSegmentData</tt></td><td class="topAlign"><tt>0x0000</tt></td><td class="topAlign">No segment data should be included with the route. A route requested with this level of segment detail will initialise <a href="qgeoroutesegment.html#path">QGeoRouteSegment::path</a>() as a straight line between the positions of the previous and next <a href="qgeomaneuver.html">QGeoManeuver</a> instances.</td></tr>
<tr><td class="topAlign"><tt>QGeoRouteRequest::BasicSegmentData</tt></td><td class="topAlign"><tt>0x0001</tt></td><td class="topAlign">Basic segment data will be included with the route. This will include <a href="qgeoroutesegment.html#path">QGeoRouteSegment::path</a>().</td></tr>
</table>
<p>The SegmentDetails type is a typedef for <a href="qflags.html">QFlags</a>&lt;SegmentDetail&gt;. It stores an OR combination of SegmentDetail values.</p>
<!-- @@@SegmentDetail -->
<!-- $$$TravelMode$$$CarTravel$$$PedestrianTravel$$$BicycleTravel$$$PublicTransitTravel$$$TruckTravel -->
<h3 class="flags"><a name="TravelMode-enum"></a>enum QGeoRouteRequest::<span class="name">TravelMode</span><br/>flags QGeoRouteRequest::<span class="name">TravelModes</span></h3>
<p>Defines modes of travel to be used for a route.</p>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>QGeoRouteRequest::CarTravel</tt></td><td class="topAlign"><tt>0x0001</tt></td><td class="topAlign">The route will be optimized for someone who is driving a car.</td></tr>
<tr><td class="topAlign"><tt>QGeoRouteRequest::PedestrianTravel</tt></td><td class="topAlign"><tt>0x0002</tt></td><td class="topAlign">The route will be optimized for someone who is walking.</td></tr>
<tr><td class="topAlign"><tt>QGeoRouteRequest::BicycleTravel</tt></td><td class="topAlign"><tt>0x0004</tt></td><td class="topAlign">The route will be optimized for someone who is riding a bicycle.</td></tr>
<tr><td class="topAlign"><tt>QGeoRouteRequest::PublicTransitTravel</tt></td><td class="topAlign"><tt>0x0008</tt></td><td class="topAlign">The route will be optimized for someone who is making use of public transit.</td></tr>
<tr><td class="topAlign"><tt>QGeoRouteRequest::TruckTravel</tt></td><td class="topAlign"><tt>0x0010</tt></td><td class="topAlign">The route will be optimized for someone who is driving a truck.</td></tr>
</table>
<p>The TravelModes type is a typedef for <a href="qflags.html">QFlags</a>&lt;TravelMode&gt;. It stores an OR combination of TravelMode values.</p>
<!-- @@@TravelMode -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QGeoRouteRequest[overload1]$$$QGeoRouteRequestconstQList<QGeoCoordinate>& -->
<h3 class="fn"><a name="QGeoRouteRequest"></a>QGeoRouteRequest::<span class="name">QGeoRouteRequest</span> ( const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qlist.html">QList</a></span>&lt;<span class="type"><a href="qgeocoordinate.html">QGeoCoordinate</a></span>&gt; &amp; <i>waypoints</i> = QList&lt;QGeoCoordinate&gt; () )</h3>
<p>Constructs a request to calculate a route through the coordinates <i>waypoints</i>.</p>
<p>The route will traverse the elements of <i>waypoints</i> in order.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<!-- @@@QGeoRouteRequest -->
<!-- $$$QGeoRouteRequest$$$QGeoRouteRequestconstQGeoCoordinate&constQGeoCoordinate& -->
<h3 class="fn"><a name="QGeoRouteRequest-2"></a>QGeoRouteRequest::<span class="name">QGeoRouteRequest</span> ( const <span class="type"><a href="qgeocoordinate.html">QGeoCoordinate</a></span> &amp; <i>origin</i>, const <span class="type"><a href="qgeocoordinate.html">QGeoCoordinate</a></span> &amp; <i>destination</i> )</h3>
<p>Constructs a request to calculate a route between <i>origin</i> and <i>destination</i>.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<!-- @@@QGeoRouteRequest -->
<!-- $$$QGeoRouteRequest$$$QGeoRouteRequestconstQGeoRouteRequest& -->
<h3 class="fn"><a name="QGeoRouteRequest-3"></a>QGeoRouteRequest::<span class="name">QGeoRouteRequest</span> ( const <span class="type">QGeoRouteRequest</span> &amp; <i>other</i> )</h3>
<p>Constructs a route request object from the contents of <i>other</i>.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<!-- @@@QGeoRouteRequest -->
<!-- $$$~QGeoRouteRequest[overload1]$$$~QGeoRouteRequest -->
<h3 class="fn"><a name="dtor.QGeoRouteRequest"></a>QGeoRouteRequest::<span class="name">~QGeoRouteRequest</span> ()</h3>
<p>Destroys the request.</p>
<!-- @@@~QGeoRouteRequest -->
<!-- $$$excludeAreas[overload1]$$$excludeAreas -->
<h3 class="fn"><a name="excludeAreas"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qlist.html">QList</a></span>&lt;<span class="type"><a href="qgeoboundingbox.html">QGeoBoundingBox</a></span>&gt; QGeoRouteRequest::<span class="name">excludeAreas</span> () const</h3>
<p>Returns areas the route must not cross.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<p><b>See also </b><a href="qgeorouterequest.html#setExcludeAreas">setExcludeAreas</a>().</p>
<!-- @@@excludeAreas -->
<!-- $$$featureTypes[overload1]$$$featureTypes -->
<h3 class="fn"><a name="featureTypes"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qlist.html">QList</a></span>&lt;<span class="type"><a href="qgeorouterequest.html#FeatureType-enum">FeatureType</a></span>&gt; QGeoRouteRequest::<span class="name">featureTypes</span> () const</h3>
<p>Returns the list of features that will be considered when planning the route. Features with a weight of <a href="qgeorouterequest.html#FeatureWeight-enum">NeutralFeatureWeight</a> will not be returned.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<!-- @@@featureTypes -->
<!-- $$$featureWeight[overload1]$$$featureWeightFeatureType -->
<h3 class="fn"><a name="featureWeight"></a><span class="type"><a href="qgeorouterequest.html#FeatureWeight-enum">FeatureWeight</a></span> QGeoRouteRequest::<span class="name">featureWeight</span> ( <span class="type"><a href="qgeorouterequest.html#FeatureType-enum">FeatureType</a></span> <i>featureType</i> ) const</h3>
<p>Returns the weight assigned to <i>featureType</i> in the planning of the route.</p>
<p>If no feature weight has been specified for <i>featureType</i> then <a href="qgeorouterequest.html#FeatureWeight-enum">NeutralFeatureWeight</a> will be returned.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<p><b>See also </b><a href="qgeorouterequest.html#setFeatureWeight">setFeatureWeight</a>().</p>
<!-- @@@featureWeight -->
<!-- $$$maneuverDetail[overload1]$$$maneuverDetail -->
<h3 class="fn"><a name="maneuverDetail"></a><span class="type"><a href="qgeorouterequest.html#ManeuverDetail-enum">ManeuverDetail</a></span> QGeoRouteRequest::<span class="name">maneuverDetail</span> () const</h3>
<p>Returns the level of detail which will be used in the representation of routing maneuvers.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<p><b>See also </b><a href="qgeorouterequest.html#setManeuverDetail">setManeuverDetail</a>().</p>
<!-- @@@maneuverDetail -->
<!-- $$$numberAlternativeRoutes[overload1]$$$numberAlternativeRoutes -->
<h3 class="fn"><a name="numberAlternativeRoutes"></a><span class="type">int</span> QGeoRouteRequest::<span class="name">numberAlternativeRoutes</span> () const</h3>
<p>Returns the number of alternative routes which will be requested.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<p><b>See also </b><a href="qgeorouterequest.html#setNumberAlternativeRoutes">setNumberAlternativeRoutes</a>().</p>
<!-- @@@numberAlternativeRoutes -->
<!-- $$$routeOptimization[overload1]$$$routeOptimization -->
<h3 class="fn"><a name="routeOptimization"></a><span class="type"><a href="qgeorouterequest.html#RouteOptimization-enum">RouteOptimizations</a></span> QGeoRouteRequest::<span class="name">routeOptimization</span> () const</h3>
<p>Returns the optimization criteria which this request specifies should be used while planning the route.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<p><b>See also </b><a href="qgeorouterequest.html#setRouteOptimization">setRouteOptimization</a>().</p>
<!-- @@@routeOptimization -->
<!-- $$$segmentDetail[overload1]$$$segmentDetail -->
<h3 class="fn"><a name="segmentDetail"></a><span class="type"><a href="qgeorouterequest.html#SegmentDetail-enum">SegmentDetail</a></span> QGeoRouteRequest::<span class="name">segmentDetail</span> () const</h3>
<p>Returns the level of detail which will be used in the representation of routing segments.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<p><b>See also </b><a href="qgeorouterequest.html#setSegmentDetail">setSegmentDetail</a>().</p>
<!-- @@@segmentDetail -->
<!-- $$$setExcludeAreas[overload1]$$$setExcludeAreasconstQList<QGeoBoundingBox>& -->
<h3 class="fn"><a name="setExcludeAreas"></a><span class="type">void</span> QGeoRouteRequest::<span class="name">setExcludeAreas</span> ( const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qlist.html">QList</a></span>&lt;<span class="type"><a href="qgeoboundingbox.html">QGeoBoundingBox</a></span>&gt; &amp; <i>areas</i> )</h3>
<p>Sets <i>areas</i> as excluded areas that the route must not cross.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<p><b>See also </b><a href="qgeorouterequest.html#excludeAreas">excludeAreas</a>().</p>
<!-- @@@setExcludeAreas -->
<!-- $$$setFeatureWeight[overload1]$$$setFeatureWeightFeatureTypeFeatureWeight -->
<h3 class="fn"><a name="setFeatureWeight"></a><span class="type">void</span> QGeoRouteRequest::<span class="name">setFeatureWeight</span> ( <span class="type"><a href="qgeorouterequest.html#FeatureType-enum">FeatureType</a></span> <i>featureType</i>, <span class="type"><a href="qgeorouterequest.html#FeatureWeight-enum">FeatureWeight</a></span> <i>featureWeight</i> )</h3>
<p>Assigns the weight <i>featureWeight</i> to the feauture <i>featureType</i> during the planning of the route.</p>
<p>By default all features are assigned a weight of <a href="qgeorouterequest.html#FeatureWeight-enum">NeutralFeatureWeight</a>.</p>
<p>It is impossible to assign a weight to <a href="qgeorouterequest.html#FeatureType-enum">QGeoRouteRequest::NoFeature</a>.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<p><b>See also </b><a href="qgeorouterequest.html#featureWeight">featureWeight</a>().</p>
<!-- @@@setFeatureWeight -->
<!-- $$$setManeuverDetail[overload1]$$$setManeuverDetailManeuverDetail -->
<h3 class="fn"><a name="setManeuverDetail"></a><span class="type">void</span> QGeoRouteRequest::<span class="name">setManeuverDetail</span> ( <span class="type"><a href="qgeorouterequest.html#ManeuverDetail-enum">ManeuverDetail</a></span> <i>maneuverDetail</i> )</h3>
<p>Sets the level of detail to use when representing routing maneuvers to <i>maneuverDetail</i>.</p>
<p>The default value is <a href="qgeorouterequest.html#ManeuverDetail-enum">QGeoRouteRequest::BasicManeuvers</a>.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<p><b>See also </b><a href="qgeorouterequest.html#maneuverDetail">maneuverDetail</a>().</p>
<!-- @@@setManeuverDetail -->
<!-- $$$setNumberAlternativeRoutes[overload1]$$$setNumberAlternativeRoutesint -->
<h3 class="fn"><a name="setNumberAlternativeRoutes"></a><span class="type">void</span> QGeoRouteRequest::<span class="name">setNumberAlternativeRoutes</span> ( <span class="type">int</span> <i>alternatives</i> )</h3>
<p>Sets the number of alternative routes to request to <i>alternatives</i>.</p>
<p>The default value is 0.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<p><b>See also </b><a href="qgeorouterequest.html#numberAlternativeRoutes">numberAlternativeRoutes</a>().</p>
<!-- @@@setNumberAlternativeRoutes -->
<!-- $$$setRouteOptimization[overload1]$$$setRouteOptimizationRouteOptimizations -->
<h3 class="fn"><a name="setRouteOptimization"></a><span class="type">void</span> QGeoRouteRequest::<span class="name">setRouteOptimization</span> ( <span class="type"><a href="qgeorouterequest.html#RouteOptimization-enum">RouteOptimizations</a></span> <i>optimization</i> )</h3>
<p>Sets the optimization criteria to use while planning the route to <i>optimization</i>.</p>
<p>The default value is <a href="qgeorouterequest.html#RouteOptimization-enum">QGeoRouteRequest::FastestRoute</a>.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<p><b>See also </b><a href="qgeorouterequest.html#routeOptimization">routeOptimization</a>().</p>
<!-- @@@setRouteOptimization -->
<!-- $$$setSegmentDetail[overload1]$$$setSegmentDetailSegmentDetail -->
<h3 class="fn"><a name="setSegmentDetail"></a><span class="type">void</span> QGeoRouteRequest::<span class="name">setSegmentDetail</span> ( <span class="type"><a href="qgeorouterequest.html#SegmentDetail-enum">SegmentDetail</a></span> <i>segmentDetail</i> )</h3>
<p>Sets the level of detail to use when representing routing segments to <i>segmentDetail</i>.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<p><b>See also </b><a href="qgeorouterequest.html#segmentDetail">segmentDetail</a>().</p>
<!-- @@@setSegmentDetail -->
<!-- $$$setTravelModes[overload1]$$$setTravelModesTravelModes -->
<h3 class="fn"><a name="setTravelModes"></a><span class="type">void</span> QGeoRouteRequest::<span class="name">setTravelModes</span> ( <span class="type"><a href="qgeorouterequest.html#TravelMode-enum">TravelModes</a></span> <i>travelModes</i> )</h3>
<p>Sets the travel modes which should be considered during the planning of the route to <i>travelModes</i>.</p>
<p>The default value is <a href="qgeorouterequest.html#TravelMode-enum">QGeoRouteRequest::CarTravel</a>.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<p><b>See also </b><a href="qgeorouterequest.html#travelModes">travelModes</a>().</p>
<!-- @@@setTravelModes -->
<!-- $$$setWaypoints[overload1]$$$setWaypointsconstQList<QGeoCoordinate>& -->
<h3 class="fn"><a name="setWaypoints"></a><span class="type">void</span> QGeoRouteRequest::<span class="name">setWaypoints</span> ( const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qlist.html">QList</a></span>&lt;<span class="type"><a href="qgeocoordinate.html">QGeoCoordinate</a></span>&gt; &amp; <i>waypoints</i> )</h3>
<p>Sets <i>waypoints</i> as the waypoints that the route should pass through.</p>
<p>The waypoints should be given in order from origin to destination.</p>
<p>This request will be invalid until the waypoints have been set to a list containing two or more coordinates.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<p><b>See also </b><a href="qgeorouterequest.html#waypoints">waypoints</a>().</p>
<!-- @@@setWaypoints -->
<!-- $$$travelModes[overload1]$$$travelModes -->
<h3 class="fn"><a name="travelModes"></a><span class="type"><a href="qgeorouterequest.html#TravelMode-enum">TravelModes</a></span> QGeoRouteRequest::<span class="name">travelModes</span> () const</h3>
<p>Returns the travel modes which this request specifies should be considered during the planning of the route.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<p><b>See also </b><a href="qgeorouterequest.html#setTravelModes">setTravelModes</a>().</p>
<!-- @@@travelModes -->
<!-- $$$waypoints[overload1]$$$waypoints -->
<h3 class="fn"><a name="waypoints"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qlist.html">QList</a></span>&lt;<span class="type"><a href="qgeocoordinate.html">QGeoCoordinate</a></span>&gt; QGeoRouteRequest::<span class="name">waypoints</span> () const</h3>
<p>Returns the waypoints that the route will pass through.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<p><b>See also </b><a href="qgeorouterequest.html#setWaypoints">setWaypoints</a>().</p>
<!-- @@@waypoints -->
<!-- $$$operator!=[overload1]$$$operator!=constQGeoRouteRequest& -->
<h3 class="fn"><a name="operator-not-eq"></a><span class="type">bool</span> QGeoRouteRequest::<span class="name">operator!=</span> ( const <span class="type">QGeoRouteRequest</span> &amp; <i>other</i> ) const</h3>
<p>Returns whether this route request and <i>other</i> are equal.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<!-- @@@operator!= -->
<!-- $$$operator=[overload1]$$$operator=constQGeoRouteRequest& -->
<h3 class="fn"><a name="operator-eq"></a><span class="type">QGeoRouteRequest</span> &amp; QGeoRouteRequest::<span class="name">operator=</span> ( const <span class="type">QGeoRouteRequest</span> &amp; <i>other</i> )</h3>
<p>Assigns <i>other</i> to this route request object and then returns a reference to this route request object.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<!-- @@@operator= -->
<!-- $$$operator==[overload1]$$$operator==constQGeoRouteRequest& -->
<h3 class="fn"><a name="operator-eq-eq"></a><span class="type">bool</span> QGeoRouteRequest::<span class="name">operator==</span> ( const <span class="type">QGeoRouteRequest</span> &amp; <i>other</i> ) const</h3>
<p>Returns whether this route request and <i>other</i> are equal.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<!-- @@@operator== -->
</div>
  <div class="ft">
    <span></span>
  </div>
</div> 
<div class="footer">
  <p>
     <acronym title="Copyright">&copy;</acronym> 2008-2011 Nokia Corporation and/or its
     subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation 
     in Finland and/or other countries worldwide.</p>
  <p>
     All other trademarks are property of their respective owners. <a title="Privacy Policy"
     href="http://qt.nokia.com/about/privacy-policy">Privacy Policy</a></p>
  <br />
  <p>
    Licensees holding valid Qt Commercial licenses may use this document in accordance with the    Qt Commercial License Agreement provided with the Software or, alternatively, in accordance    with the terms contained in a written agreement between you and Nokia.</p>
  <p>
    Alternatively, this document may be used 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.</p>
</div>
</body>
</html>