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