Routes API
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
la API de routes.googleapis.com.
Servicio: routes.googleapis.com
El nombre de servicio routes.googleapis.com
es necesario para crear stubs cliente de RPC.
Métodos |
ComputeRouteMatrix
|
Toma una lista de orígenes y destinos, y muestra un flujo que contiene información de rutas para cada combinación de origen y destino. |
ComputeRoutes
|
Muestra la ruta principal junto con las rutas alternativas opcionales, dado un conjunto de puntos de referencia intermedios y terminales. |
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2025-07-26 (UTC)
[null,null,["Última actualización: 2025-07-26 (UTC)"],[[["\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. |"]]