الخيار المفضّل للتوقّف
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
في بعض الأماكن، لا يمكن للسائقين التوقف بأمان (على سبيل المثال، المناطق المرتفعة والعبّارات والمواقع تحت الأرض وغيرها من المناطق التي يصعب الوصول إليها). تنقل ميزة محطة توقّف نقطة الطريق إلى مكان قريب إذا كان موقعها الجغرافي غير مناسب لتوقّف مركبة. عند ضبط
vehicleStopover على YES، تتم إعادة تحديد موقع نقطة الطريق تلقائيًا عند احتساب المسار، إذا كان يتوفّر موقع جغرافي بديل.
آلية العمل
يمكنك ضبط الإعدادات المفضّلة لمكان التوقّف عند إنشاء نقطة الطريق لهذا التوقّف.
لإجراء ذلك، اضبط الإعداد المفضّل لوقفة مؤقتة على GMSNavigationMutableWaypoint كما هو موضّح في المثال التالي:
Swift
CLLocationCoordinate2Dlocation=CLLocationCoordinate2D(47.67,-122.20);GMSNavigationMutableWaypoint*waypoint=GMSNavigationMutableWaypoint(withLocation:location,title:@"waypoint from location");waypoint.vehicleStopover=YES;mapView.navigator?.setDestinations([waypoint],routingOptions:routingOptions,callback:{...})
Objective-C
CLLocationCoordinate2Dlocation=CLLocationCoordinate2DMake(47.67,-122.20);GMSNavigationMutableWaypoint*waypoint=[[GMSNavigationMutableWaypointalloc]initWithLocation:locationtitle:@"waypoint from location"];waypoint.vehicleStopover=YES;[_mapView.navigatorsetDestinations:@[waypoint1]routingOptions:routingOptionscallback:^(GMSRouteStatusrouteStatus){...}];
تاريخ التعديل الأخير: 2025-12-19 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","easyToUnderstand","thumb-up"],["ساعَدني المحتوى في حلّ مشكلتي.","solvedMyProblem","thumb-up"],["غير ذلك","otherUp","thumb-up"]],[["لا يحتوي على المعلومات التي أحتاج إليها.","missingTheInformationINeed","thumb-down"],["الخطوات معقدة للغاية / كثيرة جدًا.","tooComplicatedTooManySteps","thumb-down"],["المحتوى قديم.","outOfDate","thumb-down"],["ثمة مشكلة في الترجمة.","translationIssue","thumb-down"],["مشكلة في العيّنات / التعليمات البرمجية","samplesCodeIssue","thumb-down"],["غير ذلك","otherDown","thumb-down"]],["تاريخ التعديل الأخير: 2025-12-19 (حسب التوقيت العالمي المتفَّق عليه)"],[],["The **Stopover** feature automatically relocates waypoints unsuitable for vehicle stops, such as elevated areas or ferries. To enable this, set `vehicleStopover` to `YES` on a `GMSNavigationMutableWaypoint` when creating the waypoint. This triggers automatic relocation during route calculation if an alternative location is available. The provided examples in Swift and Objective-C demonstrate how to configure `vehicleStopover` on a waypoint.\n"]]