Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Titik jalan perantara adalah titik jalan non-terminal yang membentuk rute. Anda
mengonfigurasinya menggunakan kolom permintaan intermediates. Secara default, titik jalan tengah
digunakan untuk berhenti mengambil dan menurunkan penumpang, tetapi Anda dapat menentukan bahwa
titik jalan tengah hanya dimaksudkan untuk melewati.
Mengonfigurasi titik jalan pass-through
Anda dapat mengonfigurasi titik jalan perantara menjadi titik jalan pass-through dengan menetapkan kolom via.
Contoh
Contoh berikut menunjukkan cara menandai titik jalan tengah sebagai
titik jalan lewat.
[null,null,["Terakhir diperbarui pada 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```"]]