203QGeoRouteRequest::QGeoRouteRequest(
const QGeoCoordinate &origin,
const QGeoCoordinate &destination)
204 : d_ptr(
new QGeoRouteRequestPrivate())
206 d_ptr->waypoints.append(origin);
207 d_ptr->waypoints.append(destination);
335void QGeoRouteRequest::setFeatureWeight(QGeoRouteRequest::FeatureType featureType, QGeoRouteRequest::FeatureWeight featureWeight)
337 if (featureWeight != QGeoRouteRequest::NeutralFeatureWeight) {
338 if (featureType != QGeoRouteRequest::NoFeature)
339 d_ptr->featureWeights[featureType] = featureWeight;
341 d_ptr->featureWeights.remove(featureType);
450bool QGeoRouteRequestPrivate::operator==(
const QGeoRouteRequestPrivate &other)
const
452 return ((waypoints == other.waypoints)
453 && (excludeAreas == other.excludeAreas)
454 && (numberAlternativeRoutes == other.numberAlternativeRoutes)
455 && (travelModes == other.travelModes)
456 && (featureWeights == other.featureWeights)
457 && (routeOptimization == other.routeOptimization)
458 && (segmentDetail == other.segmentDetail)
459 && (maneuverDetail == other.maneuverDetail));