با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
توسعه دهندگان منطقه اقتصادی اروپا (EEA).
بهطور پیشفرض، روش Routes API Compute Routes یک مسیر را از طریق چندین ایستگاه، به نام ایستگاههای توقف، به ترتیبی که آنها را ارائه میکنید، محاسبه میکند.
میتوانید از Routes API، مسیر ارائهشده را با مرتب کردن مجدد توقفها به ترتیب کارآمدتر بهینهسازی کنید. بهینهسازی نقطهراه برای زمان سفر بهینهسازی میشود، اما هنگام تصمیمگیری اینکه کدام مسیر کارآمدتر است، عوامل دیگری مانند مسافت و تعداد پیچها را نیز در نظر میگیرد.
برای بهینه سازی نقاط بین راه
مطمئن شوید که هیچ یک از ایستگاههای بین مسیر، via روی true تنظیم نکردهاند، برای مثال: {"address": "Clare,SA", "via": true} . برای اطلاعات بیشتر در مورد نقاط بین راهی، به تعیین نقاط بین راهی مراجعه کنید.
مطمئن شوید routing_preference روی TRAFFIC_AWARE_OPTIMAL تنظیم نشده باشد.
optimize_waypoint_order را روی true تنظیم کنید. به عنوان مثال:
"optimizeWaypointOrder":"true",
فیلد routes.optimizedIntermediateWaypointIndex را در فیلد ماسک مشخص کنید:
تاریخ آخرین بهروزرسانی 2025-07-22 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","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-07-22 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eThe Routes API's \u003ccode\u003eCompute Routes\u003c/code\u003e method can optimize the order of stops (waypoints) for greater efficiency by considering factors like travel time, distance, and turns.\u003c/p\u003e\n"],["\u003cp\u003eTo enable waypoint optimization, ensure no waypoints are marked as \u003ccode\u003evia\u003c/code\u003e, avoid using \u003ccode\u003eTRAFFIC_AWARE_OPTIMAL\u003c/code\u003e routing preference, and set \u003ccode\u003eoptimizeWaypointOrder\u003c/code\u003e to \u003ccode\u003etrue\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe API indexes waypoints based on their order in the request, optimizes the order, and returns the optimized sequence in the \u003ccode\u003eoptimizedIntermediateWaypointIndex\u003c/code\u003e field.\u003c/p\u003e\n"],["\u003cp\u003eRequests with waypoint optimization are billed at a higher rate on the ComputeRoutes-Advanced SKU.\u003c/p\u003e\n"]]],["The Routes API can optimize the order of stopover waypoints to create a more efficient route. To enable this, set `optimize_waypoint_order` to `true`, ensure no waypoints have `via: true` and the `routing_preference` is not `TRAFFIC_AWARE_OPTIMAL`. The API indexes waypoints, optimizes their order based on factors like travel time and distance, and returns the optimized order in `routes.optimizedIntermediateWaypointIndex`. This optimization is billed at a higher rate.\n"],null,[]]