Routes API
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
routes.googleapis.com API.
خدمات: routes.googleapis.com
نام سرویس routes.googleapis.com
برای ایجاد خرد مشتری RPC مورد نیاز است.
مواد و روش ها |
---|
ComputeRouteMatrix
| فهرستی از مبدا و مقصد را می گیرد و جریانی حاوی اطلاعات مسیر را برای هر ترکیب مبدا و مقصد برمی گرداند. |
ComputeRoutes
| با توجه به مجموعه ای از ایستگاه های پایانه و میانی، مسیر اصلی را به همراه مسیرهای جایگزین اختیاری برمی گرداند. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-29 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-29 بهوقت ساعت هماهنگ جهانی."],[[["\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. |"]]