Routes API
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
trace.googleapis.com API.
الخدمة: path.googleapis.com
يجب توفير اسم الخدمة routes.googleapis.com
لإنشاء رموز عميل بديلة لاستدعاء إجراء عن بُعد (RPC).
الطُرق |
ComputeRouteMatrix
|
يأخذ قائمة بالمصادر والوجهات ويعرض مجموعة بث تحتوي على معلومات المسار لكل مجموعة من نقطة الانطلاق والوجهة. |
ComputeRoutes
|
لعرض المسار الأساسي مع مسارات بديلة اختيارية، وذلك من خلال مجموعة من نقاط الطرق النهائية والمتوسطة. |
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eThe \u003ccode\u003eroutes.googleapis.com\u003c/code\u003e service provides access to Google Maps Routes API for route planning and optimization.\u003c/p\u003e\n"],["\u003cp\u003eIt offers two main RPC methods: \u003ccode\u003eComputeRouteMatrix\u003c/code\u003e and \u003ccode\u003eComputeRoutes\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eComputeRouteMatrix\u003c/code\u003e calculates routes for all combinations of origins and destinations, returning route information in a stream.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eComputeRoutes\u003c/code\u003e determines the best route and optional alternatives between specified waypoints.\u003c/p\u003e\n"]]],["The `routes.googleapis.com` service, used for creating RPC client stubs, features the `google.maps.routing.v2.Routes` service. This service includes two primary methods: `ComputeRouteMatrix`, which generates a stream of route information for multiple origin-destination pairs, and `ComputeRoutes`, which provides the primary and potentially alternate routes for a given set of waypoints. Both of them can be used to calculate routes.\n"],null,["# Routes API\n\nroutes.googleapis.com API.\n\nService: routes.googleapis.com\n------------------------------\n\nThe Service name `routes.googleapis.com` is needed to create RPC client stubs.\n\n[google.maps.routing.v2.Routes](/maps/documentation/routes/reference/rpc/google.maps.routing.v2#google.maps.routing.v2.Routes)\n------------------------------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|----------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------|\n| [ComputeRouteMatrix](/maps/documentation/routes/reference/rpc/google.maps.routing.v2#google.maps.routing.v2.Routes.ComputeRouteMatrix) | Takes in a list of origins and destinations and returns a stream containing route information for each combination of origin and destination. |\n| [ComputeRoutes](/maps/documentation/routes/reference/rpc/google.maps.routing.v2#google.maps.routing.v2.Routes.ComputeRoutes) | Returns the primary route along with optional alternate routes, given a set of terminal and intermediate waypoints. |"]]