Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Los puntos de referencia intermedios son los puntos de referencia que no son de destino y que forman una ruta. Puedes configurarlos con el campo de solicitud intermediates. De forma predeterminada, los puntos de referencia intermedios se usan para detenerse y recoger o dejar pasajeros, pero puedes especificar que un punto de referencia intermedio solo se use para pasar.
Cómo configurar un punto de referencia de paso
Para configurar un punto de referencia intermedio como punto de paso, configura el campo via.
Ejemplo
En el siguiente ejemplo, se muestra cómo marcar un punto de referencia intermedio como punto de referencia de paso.
[null,null,["Última actualización: 2024-11-23 (UTC)"],[[["\u003cp\u003eIntermediate waypoints are used for pick-up/drop-off by default, but can be configured as pass-through points using the \u003ccode\u003eintermediates\u003c/code\u003e request field.\u003c/p\u003e\n"],["\u003cp\u003eA pass-through waypoint is set by defining the \u003ccode\u003evia\u003c/code\u003e field as \u003ccode\u003etrue\u003c/code\u003e within the waypoint's configuration.\u003c/p\u003e\n"],["\u003cp\u003eRoutes containing an origin, pass-through waypoint, and destination will only have one leg, connecting the origin and destination while passing through the intermediate point.\u003c/p\u003e\n"]]],["Intermediate waypoints are configurable route points using the `intermediates` field. They can be designated as stops for pickup/drop-off or as pass-through points. To configure a pass-through waypoint, set the `via` field to `true`. A route with a pass-through waypoint includes only one route leg connecting the origin to the destination. The `location` field is required with the lat/lng values for the waypoint.\n"],null,["# Use Intermediate Waypoints\n\nIntermediate waypoints are the non-terminal waypoints that make up a route. You\nconfigure them using the `intermediates` request field. By default, intermediate\nwaypoints are used for stopping to pickup and drop-off, but you can specify that\nan intermediate waypoint is meant just for passing through.\n| **Note:** A route that contains an origin waypoint, a pass-through intermediate waypoint, and a destination waypoint, will contain just one route leg---that connects the origin and the destination, while passing through the intermediate via waypoint.\n\nConfiguring a pass-through waypoint\n-----------------------------------\n\nYou can configure an intermediate waypoint to be a pass-through waypoint by\nsetting the\n[`via`](/maps/documentation/routes_preferred/reference/rest/v1alpha/TopLevel/computeRoutes#Waypoint.FIELDS.via)\nfield.\n\nExample\n-------\n\nThe following example demonstrates how to mark an intermediate waypoint as a\npass-through waypoint. \n\n```cplint\n{\n \"via\": true,\n \"location\": {\n \"latLng\": {\n \"latitude\":37.419734,\n \"longitude\":-122.0827784\n }\n }\n}\n```"]]