127 return ( (d_ptr.constData() ==
other.d_ptr.constData())
128 || (*d_ptr) == (*
other.d_ptr));
340 return d_ptr->
path();
468 if (
s1.isValid() !=
s2.isValid())
474 s1 =
s1.nextRouteSegment();
475 s2 =
s2.nextRouteSegment();
567 return m_firstSegment;
572 if (m_numSegments >= 0)
573 return m_numSegments;
579 m_numSegments =
count;
609 return m_extendedAttributes;
625 m_containingRoute.reset(
new QGeoRoute(route));
630 if (m_containingRoute)
631 return *m_containingRoute;
637#include "moc_qgeoroute.cpp"
QGeoRoute containingRoute() const
void setLegIndex(int idx)
QVariantMap extendedAttributes() const
void setTravelTime(int travelTime)
QGeoRouteSegment firstSegment() const
void setDistance(qreal distance)
void setTravelMode(QGeoRouteRequest::TravelMode mode)
QGeoRouteRequest request() const
bool operator==(const QGeoRoutePrivate &other) const
int segmentsCount() const
void setRouteLegs(const QList< QGeoRoute > &legs)
void setBounds(const QGeoRectangle &bounds)
void setId(const QString &id)
QList< QGeoRoute > routeLegs() const
void setFirstSegment(const QGeoRouteSegment &firstSegment)
bool equals(const QGeoRoutePrivate &other) const
QGeoRouteRequest::TravelMode travelMode() const
QGeoRectangle bounds() const
void setExtendedAttributes(const QVariantMap &extendedAttributes)
QList< QGeoCoordinate > path() const
void setPath(const QList< QGeoCoordinate > &path)
void setContainingRoute(const QGeoRoute &route)
void setRequest(const QGeoRouteRequest &request)
QList< QGeoRouteSegment > segments() const
TravelMode
Defines modes of travel to be used for a route.
void setOverallRoute(const QGeoRoute &route)
const QExplicitlySharedDataPointer< QGeoRoutePrivate > & const_d() const
QList< QGeoCoordinate > path
\qmlproperty list<coordinate> QtLocation::route::path
QVariantMap extendedAttributes
\qmlproperty Object route::extendedAttributes
void setRouteId(const QString &id)
QList< QGeoRouteSegment > segments
\qmlproperty list<routeSegment> QtLocation::route::segments
void setLegIndex(int idx)
QGeoRouteRequest request() const
the route request which describes the criteria used in the calculation of this route
void setRequest(const QGeoRouteRequest &request)
QGeoRoute overallRoute
\qmlproperty Route QtLocation::route::overallRoute
QGeoRouteSegment firstRouteSegment() const
Returns the first route segment in the route.
QGeoRoute()
\qmlvaluetype route \inqmlmodule QtLocation
QGeoRectangle bounds
\qmlproperty georectangle QtLocation::route::bounds
qreal distance
\qmlproperty real QtLocation::route::distance
qsizetype segmentsCount
\qmlmethod int QtLocation::route::segmentsCount()
QGeoRoute & operator=(const QGeoRoute &other) noexcept
Assigns the contents of other to this route and returns a reference to this route.
void setFirstRouteSegment(const QGeoRouteSegment &routeSegment)
Sets the first route segment in the route to routeSegment.
QExplicitlySharedDataPointer< QGeoRoutePrivate > & d()
Returns the private implementation.
void setDistance(qreal distance)
QList< QGeoRoute > routeLegs
\qmlproperty list<route> QtLocation::route::legs
void setTravelTime(int secs)
void setTravelMode(QGeoRouteRequest::TravelMode mode)
Sets the travel mode for this route to mode.
void setPath(const QList< QGeoCoordinate > &path)
QGeoRouteRequest::TravelMode travelMode() const
Returns the travel mode for the this route.
~QGeoRoute()
Destroys this route object.
void setRouteLegs(const QList< QGeoRoute > &legs)
void setBounds(const QGeoRectangle &bounds)
void setExtendedAttributes(const QVariantMap &extendedAttributes)
int travelTime
\qmlproperty int QtLocation::route::travelTime
int legIndex
\qmlproperty int QtLocation::route::legIndex
QML_STRUCTURED_VALUEQString routeId
the identifier of this route
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
GLuint GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat s1
GLenum GLenum GLsizei count
GLsizei GLsizei GLfloat distance
GLsizei const GLchar *const * path
#define QT_DEFINE_QESDP_SPECIALIZATION_DTOR(Class)
QNetworkRequest request(url)